Class FixedProxySelector
java.lang.Object
java.net.ProxySelector
com.github.markusbernhardt.proxy.selector.fixed.FixedProxySelector
- Direct Known Subclasses:
FixedSocksSelector
This proxy selector is configured with a fixed proxy. This proxy will be
returned for all URIs passed to the select method.
- Author:
- Markus Bernhardt, Copyright 2016, Bernd Rosstauscher, Copyright 2009
-
Constructor Summary
ConstructorsConstructorDescriptionFixedProxySelector(String proxyHost, int proxyPort) ConstructorFixedProxySelector(Proxy proxy) 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
-
FixedProxySelector
Constructor- Parameters:
proxy- the proxy to use.
-
FixedProxySelector
Constructor- Parameters:
proxyHost- the host name or IP address of the proxy to use.proxyPort- the port of the proxy.
-
-
Method Details
-
connectFailed
connectFailed- Specified by:
connectFailedin classProxySelector- See Also:
-
select
select- Specified by:
selectin classProxySelector- See Also:
-
toString
-