Class FirefoxProxySelector
java.lang.Object
java.net.ProxySelector
net.sourceforge.jnlp.proxy.JNLPProxySelector
net.sourceforge.jnlp.proxy.browser.FirefoxProxySelector
A ProxySelector which can read proxy settings from a browser's
configuration and use that.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a new instance of this class, reading configuration from the browser -
Method Summary
Modifier and TypeMethodDescriptiongetFromBrowser(URI uri) The main entry point forFirefoxProxySelector.Methods inherited from class net.sourceforge.jnlp.proxy.JNLPProxySelector
connectFailed, getFromArguments, selectMethods inherited from class java.net.ProxySelector
getDefault, of, setDefault
-
Constructor Details
-
FirefoxProxySelector
Create a new instance of this class, reading configuration from the browser
-
-
Method Details
-
getFromBrowser
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:
getFromBrowserin classJNLPProxySelector- Parameters:
uri- the uri to get proxies for- Returns:
- a list of proxies
-