public class

UrlEncodedFormEntity

extends StringEntity
java.lang.Object
   ↳ org.apache.http.entity.AbstractHttpEntity
     ↳ org.apache.http.entity.StringEntity
       ↳ org.apache.http.client.entity.UrlEncodedFormEntity

Class Overview

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

Summary

[Expand]
Inherited Fields
From class org.apache.http.entity.StringEntity
From class org.apache.http.entity.AbstractHttpEntity
Public Constructors
UrlEncodedFormEntity(List<? extends NameValuePair> parameters, String encoding)
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 DEFAULT_CONTENT_CHARSET
[Expand]
Inherited Methods
From class org.apache.http.entity.StringEntity
From class org.apache.http.entity.AbstractHttpEntity
From class java.lang.Object
From interface org.apache.http.HttpEntity

Public Constructors

public UrlEncodedFormEntity (List<? extends NameValuePair> parameters, String encoding)

Since: API Level 1

Constructs a new UrlEncodedFormEntity with the list of parameters in the specified encoding.

Parameters
parameters list of name/value pairs
encoding encoding the name/value pairs be encoded with
Throws
UnsupportedEncodingException if the encoding isn't supported

public UrlEncodedFormEntity (List<? extends NameValuePair> parameters)

Since: API Level 1

Constructs a new UrlEncodedFormEntity with the list of parameters with the default encoding of DEFAULT_CONTENT_CHARSET

Parameters
parameters list of name/value pairs
Throws
UnsupportedEncodingException if the default encoding isn't supported