public interface Payload
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getInputStream()
Returns the input stream of the payload.
|
MIMEType |
getMimeType()
Return the mime-type of the payload.
|
boolean |
isAvailable()
Returns
true if the payload is available, IE. |
long |
length()
Returns the length of the stream.
|
default <A> Optional<A> |
transform(Function<InputStream,A> f) |
MIMEType getMimeType()
InputStream getInputStream()
null if the payload is not available.long length()
HTTPResponse,
this is the value of the Content-Length header. If the payload is used in a request, it can be set,
or calculated based on the type.boolean isAvailable()
true if the payload is available, IE. If the stream can be read from.true if the payload is available. false if not.default <A> Optional<A> transform(Function<InputStream,A> f)
Copyright © 2008–2017. All rights reserved.