public class UrlEncodedFormEntity extends StringEntity
content
chunked, contentEncoding, contentType
Constructor and Description |
---|
UrlEncodedFormEntity(java.util.List parameters)
Constructs a new
UrlEncodedFormEntity with the list
of parameters with the default encoding of HTTP.DEFAULT_CONTENT_CHARSET |
UrlEncodedFormEntity(java.util.List parameters,
java.lang.String encoding)
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
public UrlEncodedFormEntity(java.util.List parameters, java.lang.String encoding) throws java.io.UnsupportedEncodingException
UrlEncodedFormEntity
with the list
of parameters in the specified encoding.parameters
- list of name/value pairsencoding
- encoding the name/value pairs be encoded withjava.io.UnsupportedEncodingException
- if the encoding isn't supportedpublic UrlEncodedFormEntity(java.util.List 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 supported