|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.commons.httpclient.HttpMethodBase | +--org.apache.commons.httpclient.methods.PutMethod
PUT Method.
Fields inherited from class org.apache.commons.httpclient.HttpMethodBase |
USER_AGENT |
Constructor Summary | |
PutMethod()
No-arg constructor. |
|
PutMethod(java.lang.String path)
Path-setting constructor. |
Method Summary | |
protected void |
addRequestHeaders(HttpState state,
HttpConnection conn)
Override the method of HttpMethodBase
to set the Expect header if it has
not already been set, in addition to the "standard"
set of headers. |
java.lang.String |
getName()
Return "PUT". |
protected int |
getRequestContentLength()
Override the method of HttpMethodBase
to return the appropriate content length. |
void |
recycle()
Recycle this method so that it can be used again. |
void |
setRequestBody(byte[] bodydata)
Set my request body content to the contents of a byte array. |
void |
setRequestBody(java.io.File file)
Set my request body content to the contents of a file. |
void |
setRequestBody(java.io.InputStream is)
Set my request body content to the contents of an input stream. |
void |
setRequestBody(java.lang.String bodydata)
Set my request body content to the contents of a string. |
void |
setRequestBody(java.net.URL url)
Set my request body content to the resource at the specified URL. |
protected boolean |
writeRequestBody(HttpState state,
HttpConnection conn)
Override the method of HttpMethodBase
to not send any data until
the 100 Continue status has not be
read. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PutMethod()
public PutMethod(java.lang.String path)
path
- the path to requestMethod Detail |
public java.lang.String getName()
getName
in class HttpMethodBase
public void setRequestBody(java.io.File file) throws java.io.IOException
public void setRequestBody(java.net.URL url) throws java.io.IOException
public void setRequestBody(byte[] bodydata)
public void setRequestBody(java.lang.String bodydata)
public void setRequestBody(java.io.InputStream is) throws java.io.IOException
protected void addRequestHeaders(HttpState state, HttpConnection conn) throws java.io.IOException, HttpException
HttpMethodBase
to set the Expect header if it has
not already been set, in addition to the "standard"
set of headers.addRequestHeaders
in class HttpMethodBase
protected boolean writeRequestBody(HttpState state, HttpConnection conn) throws java.io.IOException, HttpException
HttpMethodBase
to not send any data until
the 100 Continue status has not be
read.writeRequestBody
in class HttpMethodBase
protected int getRequestContentLength()
HttpMethodBase
to return the appropriate content length.getRequestContentLength
in class HttpMethodBase
public void recycle()
HttpMethodBase
recycle
in class HttpMethodBase
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |