java.lang.Object | ||
↳ | java.net.ProxySelector | |
↳ | sun.net.spi.DefaultProxySelector |
Supports proxy settings using system properties This proxy selector provides backward compatibility with the old http protocol handler as far as how proxy is set Most of the implementation copied from the old http protocol handler Supports http/https/ftp.proxyHost, http/https/ftp.proxyPort, proxyHost, proxyPort, and http/https/ftp.nonProxyHost, and socks. NOTE: need to do gopher as well
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Called to indicate that a connection could not be established
to a proxy/socks server.
| |||||||||||
select() method.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
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 select(URI)
, using the address
and the IOException caught when trying to connect.
uri | The URI that the proxy at sa failed to serve. |
---|---|
sa | The socket address of the proxy/SOCKS server |
ioe | The I/O exception thrown when the connect failed. |
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 always contain 1 single proxy, default being NO_PROXY.
uri | The URI that a connection is required to |
---|