public interface HttpResponseEntity
| Modifier and Type | Method and Description |
|---|---|
org.dmfs.jems.optional.Optional<java.lang.Long> |
contentLength()
Returns the length of the content, if known.
|
java.io.InputStream |
contentStream()
Returns the content
InputStream of the entity. |
org.dmfs.jems.optional.Optional<MediaType> |
contentType()
Returns the
MediaType of the entity, if known. |
org.dmfs.jems.optional.Optional<MediaType> contentType()
MediaType of the entity, if known.Optional content MediaType.org.dmfs.jems.optional.Optional<java.lang.Long> contentLength()
Optional content length.java.io.InputStream contentStream()
throws java.io.IOException
InputStream of the entity. If you don't consume the entire content, make sure you always close the InputStream.InputStream.java.io.IOException - If an IO error occurred.