public class FormDataPayload extends Object implements Payload
| Modifier and Type | Class and Description |
|---|---|
static class |
FormDataPayload.FormParameter
Represents a Form Url-encoded data parameter.
|
| Constructor and Description |
|---|
FormDataPayload(Iterable<FormDataPayload.FormParameter> parameters) |
FormDataPayload(Map<String,List<String>> parameters) |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getInputStream()
Returns the input stream of the payload.
|
MIMEType |
getMimeType()
Return the mime-type of the payload.
|
String |
getValue() |
String |
getValues()
Deprecated.
|
boolean |
isAvailable()
Returns
true if the payload is available, IE. |
long |
length()
Returns the length of the stream.
|
public FormDataPayload(Iterable<FormDataPayload.FormParameter> parameters)
public MIMEType getMimeType()
PayloadgetMimeType in interface Payloadpublic InputStream getInputStream()
PayloadgetInputStream in interface Payloadnull if the payload is not available.@Deprecated public String getValues()
public String getValue()
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 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.Copyright © 2008-2013. All Rights Reserved.