| java.lang.Object org.apache.commons.httpclient.methods.InputStreamRequestEntity
InputStreamRequestEntity | public class InputStreamRequestEntity implements RequestEntity(Code) | | A RequestEntity that contains an InputStream.
since: 3.0 |
Field Summary | |
final public static int | CONTENT_LENGTH_AUTO The content length will be calculated automatically. |
CONTENT_LENGTH_AUTO | final public static int CONTENT_LENGTH_AUTO(Code) | | The content length will be calculated automatically. This implies
buffering of the content.
|
InputStreamRequestEntity | public InputStreamRequestEntity(InputStream content, String contentType)(Code) | | Creates a new InputStreamRequestEntity with the given content, content type, and a
content length of
InputStreamRequestEntity.CONTENT_LENGTH_AUTO .
Parameters: content - The content to set. Parameters: contentType - The type of the content, or null . |
InputStreamRequestEntity | public InputStreamRequestEntity(InputStream content, long contentLength, String contentType)(Code) | | Creates a new InputStreamRequestEntity with the given content, content length, and
content type.
Parameters: content - The content to set. Parameters: contentLength - The content size in bytes or a negative number if not known.If InputStreamRequestEntity.CONTENT_LENGTH_AUTO is given the content will be buffered in order to determine its size when InputStreamRequestEntity.getContentLength() is called. Parameters: contentType - The type of the content, or null . |
getContentLength | public long getContentLength()(Code) | | Gets the content length. If the content length has not been set, the content will be
buffered to determine the actual content length.
|
|
|