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.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFixedProxySelector
(String proxyHost, int proxyPort) ConstructorFixedProxySelector
(Proxy proxy) 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
-
proxyList
-
-
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:
connectFailed
in classProxySelector
- See Also:
-
select
select- Specified by:
select
in classProxySelector
- See Also:
-
toString
-