Class WpadProxySearchStrategyWithDHPC
- java.lang.Object
-
- com.github.markusbernhardt.proxy.search.wpad.WpadProxySearchStrategyWithDHPC
-
- All Implemented Interfaces:
ProxySearchStrategy
public class WpadProxySearchStrategyWithDHPC extends Object implements ProxySearchStrategy
Uses automatic proxy script search (WPAD) to find an PAC file automatically.Note: at the moment only the DNS name guessing schema is implemented. All others are missing.
For more information about WPAD: Web_Proxy_Autodiscovery_Protocol
Outdated RFC draft: draft-ietf-wrec-wpad-01.txt
- Author:
- Markus Bernhardt, Copyright 2016, Bernd Rosstauscher, Copyright 2009
-
-
Constructor Summary
Constructors Constructor Description WpadProxySearchStrategyWithDHPC()Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()Gets the printable name of the search strategy.ProxySelectorgetProxySelector()Loads the proxy settings from a PAC file.PropertiesreadSettings()Loads the settings and stores them in a properties map.
-
-
-
Method Detail
-
getProxySelector
public ProxySelector getProxySelector() throws ProxyException
Loads the proxy settings from a PAC file. The location of the PAC file is determined automatically.- Specified by:
getProxySelectorin interfaceProxySearchStrategy- Returns:
- a configured ProxySelector, null if none is found.
- Throws:
ProxyException- on error.
-
getName
public String getName()
Gets the printable name of the search strategy.- Specified by:
getNamein interfaceProxySearchStrategy- Returns:
- the printable name of the search strategy
-
readSettings
public Properties readSettings()
Loads the settings and stores them in a properties map.- Returns:
- the settings.
-
-