Class UrlProxyConfig

java.lang.Object
com.teamdev.jxbrowser.net.proxy.UrlProxyConfig
All Implemented Interfaces:
ProxyConfig

public final class UrlProxyConfig extends Object implements 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 Details

    • newInstance

      public static UrlProxyConfig newInstance(String pacUrl)
      Creates a proxy configuration based on the PAC file located at the given pacUrl.
      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 - when pacUrl is empty or blank
    • proxyAutoConfigFileUrl

      public String proxyAutoConfigFileUrl()
      Returns a string that represents a URL address of the PAC file.