ProxySelector
Class ProxySelector
- java.lang.Object
-
- java.net.ProxySelector
public abstract class ProxySelector extends Object
Selects the proxy server to use, if any, when connecting to the network resource referenced by a URL. A proxy selector is a concrete sub-class of this class and is registered by invoking the setDefault
method. The currently registered proxy selector can be retrieved by calling getDefault
method.
When a proxy selector is registered, for instance, a subclass of URLConnection class should call the select
method for each URL request so that the proxy selector can decide i