|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.net.ProxySelector
public abstract class ProxySelector
Class for handling proxies for different connections.
Constructor Summary | |
---|---|
ProxySelector()
Creates a new ProxySelector object. |
Method Summary | |
---|---|
abstract void |
connectFailed(URI uri,
SocketAddress address,
IOException exception)
Signals to the selector that a proxy was no available. |
static ProxySelector |
getDefault()
Returns the default proxy selector. |
abstract 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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProxySelector()
ProxySelector
object.
Method Detail |
---|
public static ProxySelector getDefault()
SecurityException
- If a security manager is installed and it
denies NetPermission("getProxySelector")public static void setDefault(ProxySelector selector)
selector
- the defualt proxy selector
SecurityException
- If a security manager is installed and it
denies NetPermission("setProxySelector")public abstract void connectFailed(URI uri, SocketAddress address, IOException exception)
IllegalArgumentException
- If one argument is nullpublic abstract List<Proxy> select(URI uri)
IllegalArgumentException
- If uri is null
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |