共用方式為


ProxySelector.Select(URI) Method

Definition

Selects all the applicable proxies based on the protocol to access the resource with and a destination address to access the resource at.

[Android.Runtime.Register("select", "(Ljava/net/URI;)Ljava/util/List;", "GetSelect_Ljava_net_URI_Handler")]
public abstract System.Collections.Generic.IList<Java.Net.Proxy>? Select (Java.Net.URI? uri);
[<Android.Runtime.Register("select", "(Ljava/net/URI;)Ljava/util/List;", "GetSelect_Ljava_net_URI_Handler")>]
abstract member Select : Java.Net.URI -> System.Collections.Generic.IList<Java.Net.Proxy>

Parameters

uri
URI

The URI that a connection is required to

Returns

a List of Proxies. Each element in the the List is of type java.net.Proxy Proxy; when no proxy is available, the list will contain one element of type java.net.Proxy Proxy that represents a direct connection.

Attributes

Exceptions

if uri is null.

Remarks

Selects all the applicable proxies based on the protocol to access the resource with and a destination address to access the resource at. The format of the URI is defined as follow: <UL> <LI>http URI for http connections</LI> <LI>https URI for https connections <LI>socket://host:port<br> for tcp client sockets connections</LI> </UL>

Java documentation for java.net.ProxySelector.select(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