public class FixedProxySelector extends ProxySelector
| Constructor and Description |
|---|
FixedProxySelector(Proxy proxy)
Constructor
|
FixedProxySelector(String proxyHost,
int proxyPort)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
connectFailed(URI uri,
SocketAddress sa,
IOException ioe)
connectFailed
|
List<Proxy> |
select(URI uri)
select
|
getDefault, setDefaultpublic FixedProxySelector(Proxy proxy)
proxy - the proxy to use.public FixedProxySelector(String proxyHost, int proxyPort)
proxyHost - the host name or IP address of the proxy to use.proxyPort - the port of the proxy.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 © 2020. All rights reserved.