to top
Android APIs
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)

Added in 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)

Added in 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
No examples for this method.
Frequently called with: [Clear]
Portions of this page are reproduced from work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. The original page is available here.