Class NoProxySelector


  • public class NoProxySelector
    extends java.net.ProxySelector
    This proxy selector will always return a "DIRECT" proxy. Implemented as singleton.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private NoProxySelector()
      Constructor
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void connectFailed​(java.net.URI uri, java.net.SocketAddress sa, java.io.IOException ioe)
      connectFailed
      static NoProxySelector getInstance()
      Gets the one and only instance of this selector.
      java.util.List<java.net.Proxy> select​(java.net.URI uri)
      select
      java.lang.String toString()  
      • Methods inherited from class java.net.ProxySelector

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

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

      • NoProxySelector

        private NoProxySelector()
        Constructor
    • Method Detail

      • getInstance

        public static NoProxySelector getInstance()
        Gets the one and only instance of this selector.
        Returns:
        a DirectSelector.
      • connectFailed

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

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object