Package org.azd.abstractions.proxy
Class DefaultProxySelector
java.lang.Object
java.net.ProxySelector
org.azd.abstractions.proxy.DefaultProxySelector
Implementation of proxy selector.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconnectFailed(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:
selectin 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:
connectFailedin 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.
-