public interface HttpRequestEntity
| Modifier and Type | Method and Description |
|---|---|
long |
contentLength()
Returns the length of the content or
-1 if it's not known. |
MediaType |
contentType()
Returns the
MediaType of the entity if known. |
void |
writeContent(java.io.OutputStream out)
Writes the content to the given
OutputStream. |
MediaType contentType()
MediaType of the entity if known.null if no content type is applicable (like when the entity is empty).long contentLength()
throws java.io.IOException
-1 if it's not known.-1 .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