Class SingleProxySelector


  • public class SingleProxySelector
    extends java.net.ProxySelector
    • Constructor Summary

      Constructors 
      Constructor Description
      SingleProxySelector​(java.net.Proxy proxy, java.lang.String username, java.lang.String password)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void connectFailed​(java.net.URI uri, java.net.SocketAddress sa, java.io.IOException ioe)  
      void reset()
      Reset the default proxy selector and authenticator.
      java.util.List<java.net.Proxy> select​(java.net.URI uri)  
      void set()
      Set this proxy selector as default.
      This also sets the authenticator if username and password are set.
      • Methods inherited from class java.net.ProxySelector

        getDefault, of, setDefault
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SingleProxySelector

        public SingleProxySelector​(java.net.Proxy proxy,
                                   java.lang.String username,
                                   java.lang.String password)
    • Method Detail

      • set

        public void set()
        Set this proxy selector as default.
        This also sets the authenticator if username and password are set.
      • reset

        public void reset()
        Reset the default proxy selector and authenticator.
      • select

        public java.util.List<java.net.Proxy> select​(java.net.URI uri)
        Specified by:
        select in class java.net.ProxySelector
      • connectFailed

        public void connectFailed​(java.net.URI uri,
                                  java.net.SocketAddress sa,
                                  java.io.IOException ioe)
        Specified by:
        connectFailed in class java.net.ProxySelector