Class FixedSocksSelector
- java.lang.Object
-
- java.net.ProxySelector
-
- com.github.markusbernhardt.proxy.selector.fixed.FixedProxySelector
-
- com.github.markusbernhardt.proxy.selector.fixed.FixedSocksSelector
-
public class FixedSocksSelector extends FixedProxySelector
This proxy selector is configured with a fixed proxy. This proxy will be returned for all URIs passed to the select method. This implementation can be used for SOCKS 4 and 5 proxy support.- Author:
- Markus Bernhardt, Copyright 2016, Bernd Rosstauscher, Copyright 2009
-
-
Constructor Summary
Constructors Constructor Description FixedSocksSelector(String proxyHost, int proxyPort)Constructor
-
Method Summary
-
Methods inherited from class com.github.markusbernhardt.proxy.selector.fixed.FixedProxySelector
connectFailed, select, toString
-
Methods inherited from class java.net.ProxySelector
getDefault, of, setDefault
-
-
-
-
Constructor Detail
-
FixedSocksSelector
public FixedSocksSelector(String proxyHost, int proxyPort)
Constructor- Parameters:
proxyHost- the host name or IP address of the proxy to use.proxyPort- the port of the proxy.
-
-