Android

org.apache.http.client.entity.UrlEncodedFormEntity

java.lang.Object
org.apache.http.entity.AbstractHttpEntity HttpEntity
org.apache.http.entity.StringEntity Cloneable
org.apache.http.client.entity.UrlEncodedFormEntity

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

Summary

Fields inherited from class org.apache.http.entity.StringEntity
Fields inherited 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
Methods inherited from class org.apache.http.entity.StringEntity
Methods inherited from class org.apache.http.entity.AbstractHttpEntity
Methods inherited from class java.lang.Object
Methods inherited from interface org.apache.http.HttpEntity

Details

Public Constructors

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

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)

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
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:48