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 TypeMethodDescriptionvoidconnectFailed(URI uri, SocketAddress sa, IOException ioe) connectFailedselecttoString()Methods inherited from class ProxySelector
getDefault, of, setDefault
-
Field Details
-
proxyList
-
-
Constructor Details
-
FixedProxySelector
-
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
-
toString
-