Class DefaultProxySelector

java.lang.Object
java.net.ProxySelector
org.azd.abstractions.proxy.DefaultProxySelector

public class DefaultProxySelector extends ProxySelector
Implementation of proxy selector.
  • Constructor Details

    • DefaultProxySelector

      public DefaultProxySelector(ProxyConfiguration proxyConfig)
      Default.
      Parameters:
      proxyConfig - Proxy configuration object.
  • Method Details

    • select

      public List<Proxy> select(URI uri)
      Select the URI for connection.
      Specified by:
      select in class ProxySelector
      Parameters:
      uri - The URI that a connection is required to.
      Returns:
      List of proxy object.
    • connectFailed

      public void connectFailed(URI uri, SocketAddress sa, IOException ioe)
      Throw runtime exception in case of connection failure.
      Specified by:
      connectFailed in class ProxySelector
      Parameters:
      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.