Class 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.
    • Constructor Summary

      Constructors 
      Constructor Description
      FixedSocksSelector​(java.lang.String proxyHost, int proxyPort)
      Constructor
    • Method Summary

      • Methods inherited from class java.net.ProxySelector

        getDefault, of, setDefault
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • FixedSocksSelector

        public FixedSocksSelector​(java.lang.String proxyHost,
                                  int proxyPort)
        Constructor
        Parameters:
        proxyHost - the host name or IP address of the proxy to use.
        proxyPort - the port of the proxy.