Class IEProxySearchStrategy
java.lang.Object
com.github.markusbernhardt.proxy.search.desktop.win.CommonWindowsSearchStrategy
com.github.markusbernhardt.proxy.search.browser.ie.IEProxySearchStrategy
- All Implemented Interfaces:
ProxySearchStrategy
Extracts the proxy settings for Microsoft Internet Explorer. The settings are
read by invoking native Windows API methods.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int
Use DHCP to locate the proxy auto-configuration file.private static final int
Use DNS to attempt to locate the proxy auto-configuration file at a well-known location on the domain of the local computer. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate ProxySelector
createFixedProxySelector
(IEProxyConfig ieProxyConfig) Parses the proxy settings into an ProxySelector.private PacProxySelector
createPacSelector
(IEProxyConfig ieProxyConfig) Parses the settings and creates an PAC ProxySelector for it.getName()
Gets the printable name of the search strategy.getProxySelectorLoads the settings from the windows registry.Methods inherited from class com.github.markusbernhardt.proxy.search.desktop.win.CommonWindowsSearchStrategy
buildProtocolDispatchSelector, parseProxyList, setByPassListOnSelector
-
Field Details
-
WINHTTP_AUTO_DETECT_TYPE_DHCP
private static final int WINHTTP_AUTO_DETECT_TYPE_DHCPUse DHCP to locate the proxy auto-configuration file.- See Also:
-
WINHTTP_AUTO_DETECT_TYPE_DNS_A
private static final int WINHTTP_AUTO_DETECT_TYPE_DNS_AUse DNS to attempt to locate the proxy auto-configuration file at a well-known location on the domain of the local computer.- See Also:
-
-
Constructor Details
-
IEProxySearchStrategy
public IEProxySearchStrategy()
-
-
Method Details
-
getProxySelector
getProxySelector- Returns:
- a ProxySelector, null if none is found.
- Throws:
ProxyException
- on error- See Also:
-
getName
Gets the printable name of the search strategy.- Returns:
- the printable name of the search strategy
-
readIEProxyConfig
Loads the settings from the windows registry.- Returns:
- WinIESettings containing all proxy settings.
-
createPacSelector
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
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.
-