|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.httpclient.HttpMethodBase
org.apache.webdav.lib.methods.HttpRequestBodyMethodBase
public abstract class HttpRequestBodyMethodBase
PUT Method.
Constructor Summary | |
---|---|
HttpRequestBodyMethodBase()
Default constructor. |
|
HttpRequestBodyMethodBase(java.lang.String uri)
URI-setting constructor. |
Method Summary | |
---|---|
protected int |
getRequestContentLength()
Override the method of HttpMethodBase
to return the appropriate content length. |
protected boolean |
isRequestContentAlreadySet()
return true, if the method setRequestContent has been called (with a null parameter) |
boolean |
readContinueCode()
Returns true if 100 Continue status code is found. |
void |
recycle()
|
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)
Do write the request body. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HttpRequestBodyMethodBase()
public HttpRequestBodyMethodBase(java.lang.String uri)
uri
- the URI to request. The URI is expected
to be already URL encoded. It may be either an absolute or
server relative path.Method Detail |
---|
public void setRequestBody(java.io.File file) throws java.io.IOException
java.io.IOException
public void setRequestBody(java.net.URL url) throws java.io.IOException
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
java.io.IOException
public boolean readContinueCode()
protected boolean writeRequestBody(HttpState state, HttpConnection conn) throws java.io.IOException, HttpException
HttpMethodBase
if the method should wait until a 100 Continue status code
is expected (@link readContinueCode)
writeRequestBody
in class HttpMethodBase
java.io.IOException
HttpException
protected int getRequestContentLength()
HttpMethodBase
to return the appropriate content length.
protected boolean isRequestContentAlreadySet()
public void recycle()
recycle
in interface HttpMethod
recycle
in class HttpMethodBase
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |