Class FirefoxProxySelector

java.lang.Object
java.net.ProxySelector
net.sourceforge.jnlp.proxy.JNLPProxySelector
net.sourceforge.jnlp.proxy.browser.FirefoxProxySelector

public class FirefoxProxySelector extends JNLPProxySelector
A ProxySelector which can read proxy settings from a browser's configuration and use that.
See Also:
  • Constructor Details

    • FirefoxProxySelector

      public FirefoxProxySelector(DeploymentConfiguration config)
      Create a new instance of this class, reading configuration from the browser
  • Method Details

    • getFromBrowser

      public List<Proxy> getFromBrowser(URI uri)

      The main entry point for FirefoxProxySelector. Based on the browser settings, determines proxy information for a given URI.

      The appropriate proxy may be determined by reading static information from the browser's preferences file, or it may be computed dynamically, by, for example, running javascript code.

      Specified by:
      getFromBrowser in class JNLPProxySelector
      Parameters:
      uri - the uri to get proxies for
      Returns:
      a list of proxies