public abstract class JNLPProxySelector
extends java.net.ProxySelector
ProxySelector| Modifier and Type | Field and Description | 
|---|---|
| static int | FALLBACK_PROXY_PORTThe default port to use as a fallback. | 
| static int | PROXY_TYPE_AUTO | 
| static int | PROXY_TYPE_BROWSER | 
| static int | PROXY_TYPE_MANUAL | 
| static int | PROXY_TYPE_NONE | 
| static int | PROXY_TYPE_UNKNOWN | 
| Constructor and Description | 
|---|
| JNLPProxySelector(DeploymentConfiguration config) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | connectFailed(java.net.URI uri,
             java.net.SocketAddress sa,
             java.io.IOException ioe) | 
| protected static java.util.List<java.net.Proxy> | getFromArguments(java.net.URI uri,
                boolean sameProxy,
                boolean sameProxyIncludesSocket,
                java.lang.String proxyHttpsHost,
                int proxyHttpsPort,
                java.lang.String proxyHttpHost,
                int proxyHttpPort,
                java.lang.String proxyFtpHost,
                int proxyFtpPort,
                java.lang.String proxySocks4Host,
                int proxySocks4Port)Returns a list of proxies by using the arguments | 
| protected abstract java.util.List<java.net.Proxy> | getFromBrowser(java.net.URI uri)Returns a list of proxies by querying the browser | 
| protected java.util.List<java.net.Proxy> | getFromPAC(java.net.URI uri)Returns a list of proxies by using the Proxy Auto Config (PAC) file. | 
| static java.util.List<java.net.Proxy> | getProxiesFromPacResult(java.lang.String pacString)Converts a proxy string from a browser into a List of Proxy objects
 suitable for java. | 
| java.util.List<java.net.Proxy> | select(java.net.URI uri) | 
public static final int PROXY_TYPE_UNKNOWN
public static final int PROXY_TYPE_NONE
public static final int PROXY_TYPE_MANUAL
public static final int PROXY_TYPE_AUTO
public static final int PROXY_TYPE_BROWSER
public static final int FALLBACK_PROXY_PORT
public JNLPProxySelector(DeploymentConfiguration config)
public void connectFailed(java.net.URI uri,
                 java.net.SocketAddress sa,
                 java.io.IOException ioe)
connectFailed in class java.net.ProxySelectorpublic java.util.List<java.net.Proxy> select(java.net.URI uri)
select in class java.net.ProxySelectorprotected static java.util.List<java.net.Proxy> getFromArguments(java.net.URI uri,
                                              boolean sameProxy,
                                              boolean sameProxyIncludesSocket,
                                              java.lang.String proxyHttpsHost,
                                              int proxyHttpsPort,
                                              java.lang.String proxyHttpHost,
                                              int proxyHttpPort,
                                              java.lang.String proxyFtpHost,
                                              int proxyFtpPort,
                                              java.lang.String proxySocks4Host,
                                              int proxySocks4Port)
uri - name and code says it allsameProxy - name and code says it allsameProxyIncludesSocket - name and code says it allproxyHttpsHost - name and code says it allproxyHttpsPort - name and code says it allproxyHttpHost - name and code says it allproxyHttpPort - name and code says it allproxyFtpHost - name and code says it allproxyFtpPort - name and code says it allproxySocks4Host - name and code says it allproxySocks4Port - name and code says it allprotected java.util.List<java.net.Proxy> getFromPAC(java.net.URI uri)
uri - uri to PACprotected abstract java.util.List<java.net.Proxy> getFromBrowser(java.net.URI uri)
uri - the uri to get proxies forpublic static java.util.List<java.net.Proxy> getProxiesFromPacResult(java.lang.String pacString)
pacString - a string indicating proxies. For example
 "PROXY foo.bar:3128; DIRECT"