public class UrlEncodedFormEntity
extends org.apache.http.entity.StringEntity
Constructor and Description |
---|
UrlEncodedFormEntity(java.lang.Iterable<? extends org.apache.http.NameValuePair> parameters)
Constructs a new
UrlEncodedFormEntity with the list
of parameters with the default encoding of HTTP.DEFAULT_CONTENT_CHARSET |
UrlEncodedFormEntity(java.lang.Iterable<? extends org.apache.http.NameValuePair> parameters,
java.nio.charset.Charset charset)
Constructs a new
UrlEncodedFormEntity with the list
of parameters in the specified encoding. |
UrlEncodedFormEntity(java.util.List<? extends org.apache.http.NameValuePair> parameters)
Constructs a new
UrlEncodedFormEntity with the list
of parameters with the default encoding of HTTP.DEFAULT_CONTENT_CHARSET |
UrlEncodedFormEntity(java.util.List<? extends org.apache.http.NameValuePair> parameters,
java.lang.String charset)
Constructs a new
UrlEncodedFormEntity with the list
of parameters in the specified encoding. |
clone, getContent, getContentLength, isRepeatable, isStreaming, writeTo
public UrlEncodedFormEntity(java.util.List<? extends org.apache.http.NameValuePair> parameters, java.lang.String charset) throws java.io.UnsupportedEncodingException
UrlEncodedFormEntity
with the list
of parameters in the specified encoding.parameters
- list of name/value pairscharset
- encoding the name/value pairs be encoded withjava.io.UnsupportedEncodingException
- if the encoding isn't supportedpublic UrlEncodedFormEntity(java.lang.Iterable<? extends org.apache.http.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(java.util.List<? extends org.apache.http.NameValuePair> parameters) throws java.io.UnsupportedEncodingException
UrlEncodedFormEntity
with the list
of parameters with the default encoding of HTTP.DEFAULT_CONTENT_CHARSET
parameters
- list of name/value pairsjava.io.UnsupportedEncodingException
- if the default encoding isn't supportedpublic UrlEncodedFormEntity(java.lang.Iterable<? extends org.apache.http.NameValuePair> parameters)
UrlEncodedFormEntity
with the list
of parameters with the default encoding of HTTP.DEFAULT_CONTENT_CHARSET
parameters
- iterable collection of name/value pairs