| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | DefaultProxySelector.
How to deal with "non proxy hosts": since we do have to generate a pattern we don't want to do that if it's not necessary. |
| Modifier and Type | Field and Description |
|---|---|
| private static boolean | |
| private static final List | |
| pack-priv static final String[][] | props
This is where we define all the valid System Properties we have to support for each given protocol. |
| private static final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | connectFailed(URI uri, SocketAddress sa, IOException ioe)
Implements abstract java. Called to indicate that a connection could not be established to a proxy/socks server. |
| private int | |
| private Proxy[] | determineProxies(final String urlhost, final String protocol, final DefaultProxySelector.
|
| pack-priv static String | disjunctToRegex(String
non-null mask disjunct disjunct)Returns: java regex string corresponding to this mask |
| private synchronized native Proxy[] | |
| private static native boolean | |
| public List | |
| pack-priv static boolean | shouldNotUseProxyFor(Pattern pattern, String urlhost)
Returns: |
| public static int | |
| pack-priv static Pattern | toPattern(String
non-null mask mask)Returns: |
| hasSystemProxies | back to summary |
|---|---|
| private static boolean hasSystemProxies | |
| NO_PROXY_LIST | back to summary |
|---|---|
| private static final List<Proxy> NO_PROXY_LIST | |
| props | back to summary |
|---|---|
| pack-priv static final String[][] props This is where we define all the valid System Properties we have to support for each given protocol. The format of this 2 dimensional array is : - 1 row per protocol (http, ftp, ...) - 1st element of each row is the protocol name - subsequent elements are prefixes for Host & Port properties listed in order of priority. Example: {"ftp", "ftp.proxy", "ftpProxy", "proxy", "socksProxy"}, means for FTP we try in that order: + ftp.proxyHost & ftp.proxyPort + ftpProxyHost & ftpProxyPort + proxyHost & proxyPort + socksProxyHost & socksProxyPort Note that the socksProxy should *always* be the last on the list | |
| SOCKS_PROXY_VERSION | back to summary |
|---|---|
| private static final String SOCKS_PROXY_VERSION | |
| DefaultProxySelector | back to summary |
|---|---|
| public DefaultProxySelector() | |
| connectFailed | back to summary |
|---|---|
| public void connectFailed(URI uri, SocketAddress sa, IOException ioe) Implements abstract java. Doc from java. Called to indicate that a connection could not be established
to a proxy/socks server. An implementation of this method can
temporarily remove the proxies or reorder the sequence of
proxies returned by | |
| defaultPort | back to summary |
|---|---|
| private int defaultPort(String protocol) | |
| determineProxies | back to summary |
|---|---|
| private Proxy[] determineProxies(final String urlhost, final String protocol, final DefaultProxySelector. | |
| disjunctToRegex | back to summary |
|---|---|
| pack-priv static String disjunctToRegex(String disjunct) | |
| getSystemProxies | back to summary |
|---|---|
| private synchronized native Proxy[] getSystemProxies(String protocol, String host) | |
| init | back to summary |
|---|---|
| private static native boolean init() | |
| select | back to summary |
|---|---|
| public List Implements abstract java. select() method. Where all the hard work is done. Build a list of proxies depending on URI. Since we're only providing compatibility with the system properties from previous releases (see list above), that list will typically contain one single proxy, default being NO_PROXY. If we can get a system proxy it might contain more entries. | |
| shouldNotUseProxyFor | back to summary |
|---|---|
pack-priv static boolean shouldNotUseProxyFor(Pattern pattern, String urlhost)
| |
| socksProxyVersion | back to summary |
|---|---|
| public static int socksProxyVersion() | |
| toPattern | back to summary |
|---|---|
pack-priv static Pattern toPattern(String mask)
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final String | |
| pack-priv static final String | |
| pack-priv static DefaultProxySelector. | |
| pack-priv String | |
| pack-priv static DefaultProxySelector. | |
| pack-priv Pattern | |
| pack-priv final String | |
| pack-priv static DefaultProxySelector. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| defaultVal | back to summary |
|---|---|
| pack-priv final String defaultVal | |
| defStringVal | back to summary |
|---|---|
| pack-priv static final String defStringVal | |
| ftpNonProxyInfo | back to summary |
|---|---|
| pack-priv static DefaultProxySelector. | |
| hostsSource | back to summary |
|---|---|
| pack-priv String hostsSource | |
| httpNonProxyInfo | back to summary |
|---|---|
| pack-priv static DefaultProxySelector. | |
| pattern | back to summary |
|---|---|
| pack-priv Pattern pattern | |
| property | back to summary |
|---|---|
| pack-priv final String property | |
| socksNonProxyInfo | back to summary |
|---|---|
| pack-priv static DefaultProxySelector. | |
| NonProxyInfo | back to summary |
|---|---|
| pack-priv NonProxyInfo(String p, String s, Pattern pattern, String d) | |