URLEncodedUtils.Parse Method

Definition

Overloads

Name Description
Parse(IHttpEntity)

Returns a list of INameValuePair as parsed from an IHttpEntity.

Parse(URI, String)

Returns a list of INameValuePair as built from the URI's query portion.

Parse(IList<INameValuePair>, Scanner, String)

Parses ampersand-separated, form URL encoded parameters from scanner and adds the resulting name-value pairs to parameters.

Parse(IHttpEntity)

Returns a list of INameValuePair as parsed from an IHttpEntity.

[Android.Runtime.Register("parse", "(Lorg/apache/http/HttpEntity;)Ljava/util/List;", "")]
public static System.Collections.Generic.IList<Org.Apache.Http.INameValuePair>? Parse(Org.Apache.Http.IHttpEntity? entity);
[<Android.Runtime.Register("parse", "(Lorg/apache/http/HttpEntity;)Ljava/util/List;", "")>]
static member Parse : Org.Apache.Http.IHttpEntity -> System.Collections.Generic.IList<Org.Apache.Http.INameValuePair>

Parameters

entity
IHttpEntity

The entity to parse

Returns

The decoded name-value pairs, or an empty list if the entity is not form URL encoded or contains no data.

Attributes

Exceptions

If there was an exception getting the entity's data.

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

Parse(URI, String)

Returns a list of INameValuePair as built from the URI's query portion.

[Android.Runtime.Register("parse", "(Ljava/net/URI;Ljava/lang/String;)Ljava/util/List;", "")]
public static System.Collections.Generic.IList<Org.Apache.Http.INameValuePair>? Parse(Java.Net.URI? uri, string? encoding);
[<Android.Runtime.Register("parse", "(Ljava/net/URI;Ljava/lang/String;)Ljava/util/List;", "")>]
static member Parse : Java.Net.URI * string -> System.Collections.Generic.IList<Org.Apache.Http.INameValuePair>

Parameters

uri
URI

uri to parse

encoding
String

encoding to use while parsing the query

Returns

The decoded name-value pairs from uri's raw query component, or an empty list if that component is null or empty.

Attributes

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

Parse(IList<INameValuePair>, Scanner, String)

Parses ampersand-separated, form URL encoded parameters from scanner and adds the resulting name-value pairs to parameters.

[Android.Runtime.Register("parse", "(Ljava/util/List;Ljava/util/Scanner;Ljava/lang/String;)V", "")]
public static void Parse(System.Collections.Generic.IList<Org.Apache.Http.INameValuePair>? parameters, Java.Util.Scanner? scanner, string? encoding);
[<Android.Runtime.Register("parse", "(Ljava/util/List;Ljava/util/Scanner;Ljava/lang/String;)V", "")>]
static member Parse : System.Collections.Generic.IList<Org.Apache.Http.INameValuePair> * Java.Util.Scanner * string -> unit

Parameters

parameters
IList<INameValuePair>

The list to which decoded name-value pairs are added.

scanner
Scanner

The scanner containing the form URL encoded parameters to parse.

encoding
String

The character encoding to use when decoding parameter names and values, or null to use ISO-8859-1.

Attributes

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to