Skip to content

Most visited

Recently visited

navigation

UrlEncodedFormEntity | Android Developers

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
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.