org.apache.commons.httpclient.methods
public interface RequestEntity
Since: 3.0
Method Summary | |
---|---|
long | getContentLength()
Gets the request entity's length. |
String | getContentType()
Gets the entity's content type. |
boolean | isRepeatable()
Tests if {@link #writeRequest(OutputStream)} can be called more than once.
|
void | writeRequest(OutputStream out)
Writes the request entity to the given stream. |
Returns: a non-negative value when content length is known or a negative value when content length is not known
Returns: the entity's content type
See Also: HttpMethod
Returns: true if the entity can be written to {@link OutputStream} more than once, false otherwise.
Parameters: out
Throws: IOException