Class WinProxySearchStrategy

    • Field Detail

      • WINHTTP_ACCESS_TYPE_DEFAULT_PROXY

        static final int WINHTTP_ACCESS_TYPE_DEFAULT_PROXY
        Resolves all host names directly without a proxy.
        See Also:
        Constant Field Values
      • WINHTTP_ACCESS_TYPE_NO_PROXY

        static final int WINHTTP_ACCESS_TYPE_NO_PROXY
        Retrieves the static proxy or direct configuration from the registry. WINHTTP_ACCESS_TYPE_DEFAULT_PROXY does not inherit browser proxy settings. WinHTTP does not share any proxy settings with Internet Explorer.

        The WinHTTP proxy configuration is set by one of these mechanisms.

        • The proxycfg.exe utility on Windows XP and Windows Server 2003 or earlier.
        • The netsh.exe utility on Windows Vista and Windows Server 2008 or later.
        • WinHttpSetDefaultProxyConfiguration on all platforms.
        See Also:
        Constant Field Values
      • WINHTTP_ACCESS_TYPE_NAMED_PROXY

        static final int WINHTTP_ACCESS_TYPE_NAMED_PROXY
        Passes requests to the proxy unless a proxy bypass list is supplied and the name to be resolved bypasses the proxy. In this case, this function uses WINHTTP_ACCESS_TYPE_NAMED_PROXY.
        See Also:
        Constant Field Values
    • Constructor Detail

      • WinProxySearchStrategy

        public WinProxySearchStrategy()
        Constructor
    • Method Detail

      • getName

        public java.lang.String getName()
        Gets the printable name of the search strategy.
        Returns:
        the printable name of the search strategy
      • readWindowsProxyConfig

        public WinProxyConfig readWindowsProxyConfig()
      • createFixedProxySelector

        private java.net.ProxySelector createFixedProxySelector​(WinProxyConfig winProxyConfig)
                                                         throws ProxyException
        Parses the proxy settings into an ProxySelector.
        Parameters:
        winProxySettings - the settings to use.
        Returns:
        a ProxySelector, null if no settings are set.
        Throws:
        ProxyException - on error.