Package org.azd.abstractions.proxy
Class DefaultProxySelector
java.lang.Object
java.net.ProxySelector
org.azd.abstractions.proxy.DefaultProxySelector
Implementation of proxy selector.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
connectFailed
(URI uri, SocketAddress sa, IOException ioe) Throw runtime exception in case of connection failure.Select the URI for connection.Methods inherited from class java.net.ProxySelector
getDefault, of, setDefault
-
Constructor Details
-
DefaultProxySelector
Default.- Parameters:
proxyConfig
- Proxy configuration object.
-
-
Method Details
-
select
Select the URI for connection.- Specified by:
select
in classProxySelector
- Parameters:
uri
- The URI that a connection is required to.- Returns:
- List of proxy object.
-
connectFailed
Throw runtime exception in case of connection failure.- Specified by:
connectFailed
in classProxySelector
- Parameters:
uri
- The URI that the proxy at sa failed to serve.sa
- The socket address of the proxy/SOCKS serverioe
- The I/O exception thrown when the connect failed.
-