Class ProxyBypassListSelector
java.lang.Object
java.net.ProxySelector
com.github.markusbernhardt.proxy.selector.whitelist.ProxyBypassListSelector
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 return DIRECT else it will pass the URI to an
delegate for inspection.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionProxyBypassListSelector
(String whiteList, ProxySelector proxySelector) ConstructorProxyBypassListSelector
(List<UriFilter> whiteListFilter, 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
-
ProxyBypassListSelector
Constructor- Parameters:
whiteListFilter
- a list of filters for whitelist URLs.proxySelector
- the proxy selector to use.
-
ProxyBypassListSelector
Constructor- Parameters:
whiteList
- a list of filters for whitelist URLs as comma/space separated string.proxySelector
- the proxy selector to use.
-
-
Method Details
-
connectFailed
connectFailed- Specified by:
connectFailed
in classProxySelector
- See Also:
-
toString
-
select
select- Specified by:
select
in classProxySelector
- See Also:
-