public class PacProxySelector extends ProxySelector
| Constructor and Description |
|---|
PacProxySelector(PacScriptSource pacSource)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
connectFailed(URI uri,
SocketAddress sa,
IOException ioe)
connectFailed
|
static boolean |
isEnabled()
Checks if the selector is currently enabled.
|
List<Proxy> |
select(URI uri)
select
|
static void |
setEnabled(boolean enable)
Can be used to enable / disable the proxy selector.
|
getDefault, setDefaultpublic PacProxySelector(PacScriptSource pacSource)
pacSource - the source for the PAC file.public static void setEnabled(boolean enable)
enable - the new status to set.public static boolean isEnabled()
public void connectFailed(URI uri, SocketAddress sa, IOException ioe)
connectFailed in class ProxySelectorProxySelector.connectFailed(java.net.URI, java.net.SocketAddress, java.io.IOException)public List<Proxy> select(URI uri)
select in class ProxySelectorProxySelector.select(java.net.URI)Copyright © 2022. All rights reserved.