public class MD5CaculcatingPayload extends Object implements Payload
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getInputStream()
Returns the input stream of the payload.
|
String |
getMD5() |
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.
|
static MD5CaculcatingPayload |
payloadFor(Payload p) |
public String getMD5()
public MIMEType getMimeType()
PayloadgetMimeType in interface Payloadpublic InputStream getInputStream()
PayloadgetInputStream in interface Payloadnull if the payload is not available.public long length()
PayloadHTTPResponse,
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.public boolean isAvailable()
Payloadtrue if the payload is available, IE. If the stream can be read from.isAvailable in interface Payloadtrue if the payload is available. false if not.public static MD5CaculcatingPayload payloadFor(Payload p)
Copyright © 2008-2013. All Rights Reserved.