Język

BasicHeaderValueParser.ParseNameValuePair Method

Definition

Overloads

Name Description
ParseNameValuePair(CharArrayBuffer, ParserCursor)

Parses a name=value specification, where the = and value are optional.

ParseNameValuePair(String, IHeaderValueParser)

Parses a name-value pair using the specified parser.

ParseNameValuePair(CharArrayBuffer, ParserCursor, Char[])

Parses a name-value pair from the current cursor position. The first = found while scanning the name always separates the name from the value, even if it is a configured delimiter. Other configured delimiters end the name scan; configured delimiters end the value scan only when they are neither quoted nor escaped. Parsing stops at the cursor's upper bound if no terminating delimiter is found.

ParseNameValuePair(CharArrayBuffer, ParserCursor)

Parses a name=value specification, where the = and value are optional.

[Android.Runtime.Register("parseNameValuePair", "(Lorg/apache/http/util/CharArrayBuffer;Lorg/apache/http/message/ParserCursor;)Lorg/apache/http/NameValuePair;", "GetParseNameValuePair_Lorg_apache_http_util_CharArrayBuffer_Lorg_apache_http_message_ParserCursor_Handler")]
public virtual Org.Apache.Http.INameValuePair? ParseNameValuePair(Org.Apache.Http.Util.CharArrayBuffer? buffer, Org.Apache.Http.Message.ParserCursor? cursor);
[<Android.Runtime.Register("parseNameValuePair", "(Lorg/apache/http/util/CharArrayBuffer;Lorg/apache/http/message/ParserCursor;)Lorg/apache/http/NameValuePair;", "GetParseNameValuePair_Lorg_apache_http_util_CharArrayBuffer_Lorg_apache_http_message_ParserCursor_Handler")>]
abstract member ParseNameValuePair : Org.Apache.Http.Util.CharArrayBuffer * Org.Apache.Http.Message.ParserCursor -> Org.Apache.Http.INameValuePair
override this.ParseNameValuePair : Org.Apache.Http.Util.CharArrayBuffer * Org.Apache.Http.Message.ParserCursor -> Org.Apache.Http.INameValuePair

Parameters

buffer
CharArrayBuffer

The buffer holding the name-value pair to parse.

cursor
ParserCursor

The parser cursor containing the current position and parsing bounds.

Returns

The parsed name-value pair.

Implements

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

ParseNameValuePair(String, IHeaderValueParser)

Parses a name-value pair using the specified parser.

[Android.Runtime.Register("parseNameValuePair", "(Ljava/lang/String;Lorg/apache/http/message/HeaderValueParser;)Lorg/apache/http/NameValuePair;", "")]
public static Org.Apache.Http.INameValuePair? ParseNameValuePair(string? value, Org.Apache.Http.Message.IHeaderValueParser? parser);
[<Android.Runtime.Register("parseNameValuePair", "(Ljava/lang/String;Lorg/apache/http/message/HeaderValueParser;)Lorg/apache/http/NameValuePair;", "")>]
static member ParseNameValuePair : string * Org.Apache.Http.Message.IHeaderValueParser -> Org.Apache.Http.INameValuePair

Parameters

value
String

The name-value pair to parse.

parser
IHeaderValueParser

The parser to use, or null for the default parser.

Returns

The parsed name-value pair.

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

ParseNameValuePair(CharArrayBuffer, ParserCursor, Char[])

Parses a name-value pair from the current cursor position. The first = found while scanning the name always separates the name from the value, even if it is a configured delimiter. Other configured delimiters end the name scan; configured delimiters end the value scan only when they are neither quoted nor escaped. Parsing stops at the cursor's upper bound if no terminating delimiter is found.

[Android.Runtime.Register("parseNameValuePair", "(Lorg/apache/http/util/CharArrayBuffer;Lorg/apache/http/message/ParserCursor;[C)Lorg/apache/http/NameValuePair;", "GetParseNameValuePair_Lorg_apache_http_util_CharArrayBuffer_Lorg_apache_http_message_ParserCursor_arrayCHandler")]
public virtual Org.Apache.Http.INameValuePair? ParseNameValuePair(Org.Apache.Http.Util.CharArrayBuffer? buffer, Org.Apache.Http.Message.ParserCursor? cursor, char[]? delimiters);
[<Android.Runtime.Register("parseNameValuePair", "(Lorg/apache/http/util/CharArrayBuffer;Lorg/apache/http/message/ParserCursor;[C)Lorg/apache/http/NameValuePair;", "GetParseNameValuePair_Lorg_apache_http_util_CharArrayBuffer_Lorg_apache_http_message_ParserCursor_arrayCHandler")>]
abstract member ParseNameValuePair : Org.Apache.Http.Util.CharArrayBuffer * Org.Apache.Http.Message.ParserCursor * char[] -> Org.Apache.Http.INameValuePair
override this.ParseNameValuePair : Org.Apache.Http.Util.CharArrayBuffer * Org.Apache.Http.Message.ParserCursor * char[] -> Org.Apache.Http.INameValuePair

Parameters

buffer
CharArrayBuffer

The non-null buffer that contains the name-value pair.

cursor
ParserCursor

The non-null cursor that supplies the current position and upper bound and receives the position after parsing.

delimiters
Char[]

The characters that end the pair when found in the name or outside a quoted or escaped part of the value, or null for no delimiters. The first = found while scanning the name always separates the name from the value, even if it is listed here.

Returns

The parsed name-value pair. Its value is null if the name scan reaches a configured delimiter other than =, or the upper bound, before finding =.

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