public class UrlEncodedFormEntity extends StringEntity
Constructor and Description |
---|
UrlEncodedFormEntity(Iterable<? extends NameValuePair> parameters)
Constructs a new
UrlEncodedFormEntity with the list
of parameters with the default encoding of ContentType.APPLICATION_FORM_URLENCODED |
UrlEncodedFormEntity(Iterable<? extends NameValuePair> parameters,
java.nio.charset.Charset charset)
Constructs a new
UrlEncodedFormEntity with the list
of parameters in the specified encoding. |
UrlEncodedFormEntity(List<? extends NameValuePair> parameters)
Constructs a new
UrlEncodedFormEntity with the list
of parameters with the default encoding of ContentType.APPLICATION_FORM_URLENCODED |
close, getContent, getContentLength, isRepeatable, isStreaming, writeTo
getContentEncoding, getContentType, getTrailerNames, getTrailers, isChunked, toString, writeTo
public UrlEncodedFormEntity(Iterable<? extends NameValuePair> parameters)
UrlEncodedFormEntity
with the list
of parameters with the default encoding of ContentType.APPLICATION_FORM_URLENCODED
parameters
- iterable collection of name/value pairspublic UrlEncodedFormEntity(Iterable<? extends NameValuePair> parameters, java.nio.charset.Charset charset)
UrlEncodedFormEntity
with the list
of parameters in the specified encoding.parameters
- iterable collection of name/value pairscharset
- encoding the name/value pairs be encoded withpublic UrlEncodedFormEntity(List<? extends NameValuePair> parameters)
UrlEncodedFormEntity
with the list
of parameters with the default encoding of ContentType.APPLICATION_FORM_URLENCODED
parameters
- list of name/value pairs