public class UrlEncodedFormEntity
extends org.apache.http.entity.StringEntity
Constructor and Description |
---|
UrlEncodedFormEntity(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(Iterable<? extends org.apache.http.NameValuePair> parameters,
Charset charset)
Constructs a new
UrlEncodedFormEntity with the list
of parameters in the specified encoding. |
UrlEncodedFormEntity(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(List<? extends org.apache.http.NameValuePair> parameters,
String charset)
Constructs a new
UrlEncodedFormEntity with the list
of parameters in the specified encoding. |
clone, getContent, getContentLength, isRepeatable, isStreaming, writeTo
public UrlEncodedFormEntity(List<? extends org.apache.http.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 org.apache.http.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 org.apache.http.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 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 pairsCopyright © 1999–2022 The Apache Software Foundation. All rights reserved.