public class BaseProxySelector extends ProxySelector
BaseProxySelector proxySelector = new BaseProxySelector(ProxySelector.getDefault(), proxies); ProxySelector.setDefault(proxySelector);The argument proxies is the map with the map of the addresses to be used as proxy.
| Constructor and Description |
|---|
BaseProxySelector(ProxySelector defaultSelector,
Map<SocketAddress,ProxyDecorator> proxies)
Instantiates a new base proxy selector.
|
| Modifier and Type | Method and Description |
|---|---|
void |
connectFailed(URI uri,
SocketAddress sa,
IOException ioe) |
List<Proxy> |
select(URI uri) |
getDefault, setDefaultpublic BaseProxySelector(ProxySelector defaultSelector, Map<SocketAddress,ProxyDecorator> proxies)
defaultSelector - the default selectorproxies - the proxiespublic void connectFailed(URI uri, SocketAddress sa, IOException ioe)
connectFailed in class ProxySelectorpublic List<Proxy> select(URI uri)
select in class ProxySelectorCopyright © 2015–2016 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.