Share via


ICookieStore.Get(URI) Method

Definition

Retrieve cookies associated with given URI, or whose domain matches the given URI.

[Android.Runtime.Register("get", "(Ljava/net/URI;)Ljava/util/List;", "GetGet_Ljava_net_URI_Handler:Java.Net.ICookieStoreInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public System.Collections.Generic.IList<Java.Net.HttpCookie>? Get (Java.Net.URI? uri);
[<Android.Runtime.Register("get", "(Ljava/net/URI;)Ljava/util/List;", "GetGet_Ljava_net_URI_Handler:Java.Net.ICookieStoreInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member Get : Java.Net.URI -> System.Collections.Generic.IList<Java.Net.HttpCookie>

Parameters

uri
URI

the uri associated with the cookies to be returned

Returns

an immutable list of HttpCookie, return empty list if no cookies match the given URI

Attributes

Exceptions

if uri is null

Remarks

Retrieve cookies associated with given URI, or whose domain matches the given URI. Only cookies that have not expired are returned. This is called for every outgoing HTTP request.

Java documentation for java.net.CookieStore.get(java.net.URI).

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