When a proxy selector is registered, for instance, a subclass of URLConnection class should call the {@link #select select}method for each URL request so that the proxy selector can decide if a direct, or proxied connection should be used. The {@link #select select} method returns an iterator over a collection withthe preferred connection approach.
If a connection cannot be established to a proxy (PROXY or SOCKS) servers then the caller should call the proxy selector's {@link #connectFailed connectFailed} method to notify the proxyselector that the proxy server is unavailable.
@version 1.3, 03/08/09 @author Yingxian Wang @author Jean-Christophe Collet @since 1.5
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|