Class IEProxySearchStrategy

  • All Implemented Interfaces:
    ProxySearchStrategy

    public class IEProxySearchStrategy
    extends CommonWindowsSearchStrategy
    Extracts the proxy settings for Microsoft Internet Explorer. The settings are read by invoking native Windows API methods.
    • Field Detail

      • WINHTTP_AUTO_DETECT_TYPE_DHCP

        private static final int WINHTTP_AUTO_DETECT_TYPE_DHCP
        Use DHCP to locate the proxy auto-configuration file.
        See Also:
        Constant Field Values
      • WINHTTP_AUTO_DETECT_TYPE_DNS_A

        private static final int WINHTTP_AUTO_DETECT_TYPE_DNS_A
        Use DNS to attempt to locate the proxy auto-configuration file at a well-known location on the domain of the local computer.
        See Also:
        Constant Field Values
    • Constructor Detail

      • IEProxySearchStrategy

        public IEProxySearchStrategy()
    • Method Detail

      • getName

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

        public IEProxyConfig readIEProxyConfig()
        Loads the settings from the windows registry.
        Returns:
        WinIESettings containing all proxy settings.
      • createPacSelector

        private PacProxySelector createPacSelector​(IEProxyConfig ieProxyConfig)
        Parses the settings and creates an PAC ProxySelector for it.
        Parameters:
        ieSettings - the IE settings to use.
        Returns:
        a PacProxySelector the selector or null.
      • createFixedProxySelector

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