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.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionUseProxyWhiteListSelector
(String whiteList, ProxySelector proxySelector) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
connectFailed
(URI uri, SocketAddress sa, IOException ioe) connectFailedselecttoString()
Methods inherited from class java.net.ProxySelector
getDefault, of, setDefault
-
Field Details
-
delegate
-
whiteListFilter
-
-
Constructor Details
-
UseProxyWhiteListSelector
Constructor- Parameters:
whiteList
- the whitelist to use.proxySelector
- the proxy selector to use.
-
-
Method Details
-
connectFailed
connectFailed- Specified by:
connectFailed
in classProxySelector
- See Also:
-
select
select- Specified by:
select
in classProxySelector
- See Also:
-
toString
-