BasicDomainHandler.Match(ICookie, CookieOrigin) Method

Definition

Determines whether this cookie attribute matches the supplied request origin.

[Android.Runtime.Register("match", "(Lorg/apache/http/cookie/Cookie;Lorg/apache/http/cookie/CookieOrigin;)Z", "GetMatch_Lorg_apache_http_cookie_Cookie_Lorg_apache_http_cookie_CookieOrigin_Handler")]
public virtual bool Match(Org.Apache.Http.Cookies.ICookie? cookie, Org.Apache.Http.Cookies.CookieOrigin? origin);
[<Android.Runtime.Register("match", "(Lorg/apache/http/cookie/Cookie;Lorg/apache/http/cookie/CookieOrigin;)Z", "GetMatch_Lorg_apache_http_cookie_Cookie_Lorg_apache_http_cookie_CookieOrigin_Handler")>]
abstract member Match : Org.Apache.Http.Cookies.ICookie * Org.Apache.Http.Cookies.CookieOrigin -> bool
override this.Match : Org.Apache.Http.Cookies.ICookie * Org.Apache.Http.Cookies.CookieOrigin -> bool

Parameters

cookie
ICookie

The cookie being parsed, validated, or evaluated.

origin
CookieOrigin

The host, port, path, and security context of the request.

Returns

true when the requested condition is satisfied; otherwise, false.

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