public abstract class ProxySelector extends java.lang.Object
| Constructor and Description |
|---|
ProxySelector()
Creates a new
ProxySelector object. |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
connectFailed(URI uri,
SocketAddress address,
java.io.IOException exception)
Signals to the selector that a proxy was no available.
|
static ProxySelector |
getDefault()
Returns the default proxy selector.
|
abstract java.util.List<Proxy> |
select(URI uri)
Returns the list of proxy settings for a given URI.
|
static void |
setDefault(ProxySelector selector)
Sets the default proxy selector.
|
public ProxySelector()
ProxySelector object.public static ProxySelector getDefault()
java.lang.SecurityException - If a security manager is installed and it
denies NetPermission("getProxySelector")public static void setDefault(ProxySelector selector)
selector - the defualt proxy selectorjava.lang.SecurityException - If a security manager is installed and it
denies NetPermission("setProxySelector")public abstract void connectFailed(URI uri, SocketAddress address, java.io.IOException exception)
java.lang.IllegalArgumentException - If one argument is null