public final class UrlProxyConfig extends java.lang.Object implements ProxyConfig
Modifier and Type | Method and Description |
---|---|
static UrlProxyConfig |
newInstance(java.lang.String pacUrl)
Creates a proxy configuration based on the PAC file located at the given
pacUrl . |
java.lang.String |
proxyAutoConfigFileUrl()
Returns a string that represents a URL address of the PAC file.
|
public static UrlProxyConfig newInstance(java.lang.String pacUrl)
pacUrl
.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.java.lang.IllegalArgumentException
- when pacUrl
is empty or blankpublic java.lang.String proxyAutoConfigFileUrl()