Package com.teamdev.jxbrowser.net.proxy
Class UrlProxyConfig
java.lang.Object
com.teamdev.jxbrowser.net.proxy.UrlProxyConfig
- All Implemented Interfaces:
ProxyConfig
With this proxy configuration the connection uses proxy settings received from proxy auto-config
(PAC) file which is located at the specific address. In case PAC script fails, a direct
connection will be used.
-
Method Summary
Modifier and TypeMethodDescriptionstatic UrlProxyConfig
newInstance
(String pacUrl) Creates a proxy configuration based on the PAC file located at the givenpacUrl
.Returns a string that represents a URL address of the PAC file.
-
Method Details
-
newInstance
Creates a proxy configuration based on the PAC file located at the givenpacUrl
.- Parameters:
pacUrl
- a string that represents a valid URL address of the PAC file. Cannot be null, empty or contain a path to the PAC file on a local file system.- Throws:
IllegalArgumentException
- whenpacUrl
is empty or blank
-
proxyAutoConfigFileUrl
Returns a string that represents a URL address of the PAC file.
-