org.apache.http.client.entity
Class UrlEncodedFormEntityHC4

java.lang.Object
  extended by org.apache.http.entity.AbstractHttpEntityHC4
      extended by org.apache.http.entity.StringEntityHC4
          extended by org.apache.http.client.entity.UrlEncodedFormEntityHC4
All Implemented Interfaces:
java.lang.Cloneable, org.apache.http.HttpEntity

@NotThreadSafe
public class UrlEncodedFormEntityHC4
extends StringEntityHC4

An entity composed of a list of url-encoded pairs. This is typically useful while sending an HTTP POST request.

Since:
4.0

Field Summary
 
Fields inherited from class org.apache.http.entity.StringEntityHC4
content
 
Fields inherited from class org.apache.http.entity.AbstractHttpEntityHC4
chunked, contentEncoding, contentType, OUTPUT_BUFFER_SIZE
 
Constructor Summary
UrlEncodedFormEntityHC4(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
UrlEncodedFormEntityHC4(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.
UrlEncodedFormEntityHC4(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
UrlEncodedFormEntityHC4(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.
 
Method Summary
 
Methods inherited from class org.apache.http.entity.StringEntityHC4
clone, getContent, getContentLength, isRepeatable, isStreaming, writeTo
 
Methods inherited from class org.apache.http.entity.AbstractHttpEntityHC4
consumeContent, getContentEncoding, getContentType, isChunked, setChunked, setContentEncoding, setContentEncoding, setContentType, setContentType
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UrlEncodedFormEntityHC4

public UrlEncodedFormEntityHC4(java.util.List<? extends org.apache.http.NameValuePair> parameters,
                               java.lang.String charset)
                        throws java.io.UnsupportedEncodingException
Constructs a new UrlEncodedFormEntity with the list of parameters in the specified encoding.

Parameters:
parameters - list of name/value pairs
charset - encoding the name/value pairs be encoded with
Throws:
java.io.UnsupportedEncodingException - if the encoding isn't supported

UrlEncodedFormEntityHC4

public UrlEncodedFormEntityHC4(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.

Parameters:
parameters - iterable collection of name/value pairs
charset - encoding the name/value pairs be encoded with
Since:
4.2

UrlEncodedFormEntityHC4

public UrlEncodedFormEntityHC4(java.util.List<? extends org.apache.http.NameValuePair> parameters)
                        throws java.io.UnsupportedEncodingException
Constructs a new UrlEncodedFormEntity with the list of parameters with the default encoding of HTTP.DEFAULT_CONTENT_CHARSET

Parameters:
parameters - list of name/value pairs
Throws:
java.io.UnsupportedEncodingException - if the default encoding isn't supported

UrlEncodedFormEntityHC4

public UrlEncodedFormEntityHC4(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

Parameters:
parameters - iterable collection of name/value pairs
Since:
4.2