org.apache.commons.httpclient.methods
public class ByteArrayRequestEntity extends Object implements RequestEntity
Since: 3.0
| Constructor Summary | |
|---|---|
| ByteArrayRequestEntity(byte[] content)
Creates a new entity with the given content. | |
| ByteArrayRequestEntity(byte[] content, String contentType)
Creates a new entity with the given content and content type. | |
| Method Summary | |
|---|---|
| byte[] | getContent() |
| long | getContentLength() |
| String | getContentType() |
| boolean | isRepeatable() |
| void | writeRequest(OutputStream out) |
Parameters: content The content to set.
Parameters: content The content to set. contentType The content type to set or null.
Returns: Returns the content.
Returns: The length of the content.
Returns: true