@NotThreadSafe public class UrlEncodedFormEntity extends StringEntity
content
chunked, contentEncoding, contentType, OUTPUT_BUFFER_SIZE
Constructor and Description |
---|
UrlEncodedFormEntity(Iterable<? extends NameValuePair> parameters)
Constructs a new
UrlEncodedFormEntity with the list
of parameters with the default encoding of HTTP.DEFAULT_CONTENT_CHARSET |
UrlEncodedFormEntity(Iterable<? extends NameValuePair> parameters,
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 HTTP.DEFAULT_CONTENT_CHARSET |
UrlEncodedFormEntity(List<? extends NameValuePair> parameters,
String charset)
Constructs a new
UrlEncodedFormEntity with the list
of parameters in the specified encoding. |
clone, getContent, getContentLength, isRepeatable, isStreaming, writeTo
consumeContent, getContentEncoding, getContentType, isChunked, setChunked, setContentEncoding, setContentEncoding, setContentType, setContentType, toString
public UrlEncodedFormEntity(List<? extends NameValuePair> parameters, String charset) throws UnsupportedEncodingException
UrlEncodedFormEntity
with the list
of parameters in the specified encoding.parameters
- list of name/value pairscharset
- encoding the name/value pairs be encoded withUnsupportedEncodingException
- if the encoding isn't supportedpublic UrlEncodedFormEntity(Iterable<? extends NameValuePair> parameters, 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) throws UnsupportedEncodingException
UrlEncodedFormEntity
with the list
of parameters with the default encoding of HTTP.DEFAULT_CONTENT_CHARSET
parameters
- list of name/value pairsUnsupportedEncodingException
- if the default encoding isn't supportedpublic UrlEncodedFormEntity(Iterable<? extends NameValuePair> parameters)
UrlEncodedFormEntity
with the list
of parameters with the default encoding of HTTP.DEFAULT_CONTENT_CHARSET
parameters
- iterable collection of name/value pairsCopyright © 1999–2014 The Apache Software Foundation. All rights reserved.