Class JavaProxySearchStrategy

  • All Implemented Interfaces:
    ProxySearchStrategy

    public class JavaProxySearchStrategy
    extends Object
    implements ProxySearchStrategy
    Reads some java system properties and extracts the proxy settings from them. The following variables are read:
    • http.proxyHost (default: none)
    • http.proxyPort (default: 80 if http.proxyHost specified)
    • http.nonProxyHosts (default: none)
    • https.proxyHost (default: none)
    • https.proxyPort (default: 443 if https.proxyHost specified)
    • ftp.proxyHost (default: none)
    • ftp.proxyPort (default: 80 if ftp.proxyHost specified)
    • ftp.nonProxyHosts (default: none)
    • socksProxyHost
    • socksProxyPort (default: 1080)

    This is based on information found here:
    http://download.oracle.com/javase/6/docs/technotes/guides/net/proxies.html

    If the "http.proxyHost" property is not set then the no proxy selector is setup This property is used as marker to signal that the System settings should be used.
    Author:
    Markus Bernhardt, Copyright 2016, Bernd Rosstauscher, Copyright 2009
    • Constructor Detail

      • JavaProxySearchStrategy

        public JavaProxySearchStrategy()
        Constructor Will use the default environment variables.
    • Method Detail

      • getName

        public String getName()
        Gets the printable name of the search strategy.
        Specified by:
        getName in interface ProxySearchStrategy
        Returns:
        the printable name of the search strategy