public interface HttpRequestEntity
| Modifier and Type | Method and Description |
|---|---|
long |
contentLength()
Returns the length of the content or a negative number if it's not known.
|
ContentType |
contentType()
Returns the content type of the entity if known.
|
void |
writeContent(java.io.OutputStream out)
Writes the content to the given
OutputStream. |
ContentType contentType()
null if no content type is applicable (like when the entity is empty).long contentLength()
throws java.io.IOException
java.io.IOExceptionvoid writeContent(java.io.OutputStream out)
throws java.io.IOException
OutputStream. Note that the stream is property of the caller and must not be closed by this method.out - The OutputStream to write to.java.io.IOException