Java.Net.HttpCookie.Parse Method
Constructs a cookie from a string.

Syntax

[Android.Runtime.Register("parse", "(Ljava/lang/String;)Ljava/util/List;", "")]
public static IList<HttpCookie> Parse (string header)

Parameters

header
a set-cookie or set-cookie2 header.

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Lang.IllegalArgumentExceptionif the string does not comply with cookie specification, or the cookie name contains illegal characters, or reserved tokens of cookie specification appears
Java.Lang.NullPointerExceptionif header is null

Remarks

Constructs a cookie from a string. The string should comply with set-cookie or set-cookie2 header format as specified in . Since set-cookies2 syntax allows more than one cookie definitions in one header, the returned object is a list.

[Android Documentation]

Requirements

Namespace: Java.Net
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 9