Class UseProxyWhiteListSelector
java.lang.Object
java.net.ProxySelector
com.github.markusbernhardt.proxy.selector.whitelist.UseProxyWhiteListSelector
Special purpose ProxySelector used as Facade on top of a normal
ProxySelector. A wrapper that will first check the URI against a white list
and if it matches it will use a proxy as provided by the delegate
ProxySelector else it will return DIRECT.
- Author:
- Markus Bernhardt, Copyright 2016, Bernd Rosstauscher, Copyright 2009
-
Constructor Summary
ConstructorsConstructorDescriptionUseProxyWhiteListSelector(String whiteList, ProxySelector proxySelector) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoidconnectFailed(URI uri, SocketAddress sa, IOException ioe) connectFailedselecttoString()Methods inherited from class java.net.ProxySelector
getDefault, of, setDefault
-
Constructor Details
-
UseProxyWhiteListSelector
Constructor- Parameters:
whiteList- the whitelist to use.proxySelector- the proxy selector to use.
-
-
Method Details
-
connectFailed
connectFailed- Specified by:
connectFailedin classProxySelector- See Also:
-
select
select- Specified by:
selectin classProxySelector- See Also:
-
toString
-