Class ProxyDecorator

  • All Implemented Interfaces:
    java.io.Serializable

    public class ProxyDecorator
    extends java.lang.Object
    implements java.io.Serializable
    The class ProxyDecorator decorates a Proxy object.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      ProxyDecorator​(java.net.Proxy.Type proxyType, java.net.InetSocketAddress inetSocketAddress)
      Instantiates a new ProxyDecorator object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.net.SocketAddress address()
      Address.
      boolean equals​(java.lang.Object obj)
      int failed()
      Failed.
      int getFailedCount()
      Gets the failed count.
      java.net.Proxy getProxy()
      Gets the proxy.
      int hashCode()
      java.lang.String toString()
      java.net.Proxy.Type type()
      Type.
      • Methods inherited from class java.lang.Object

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

      • ProxyDecorator

        public ProxyDecorator​(java.net.Proxy.Type proxyType,
                              java.net.InetSocketAddress inetSocketAddress)
        Instantiates a new ProxyDecorator object.
        Parameters:
        proxyType - the proxy type
        inetSocketAddress - the inet socket address
    • Method Detail

      • address

        public java.net.SocketAddress address()
        Address.
        Returns:
        the socket address
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • failed

        public int failed()
        Failed.
        Returns:
        the int
      • getFailedCount

        public int getFailedCount()
        Gets the failed count.
        Returns:
        the failed count
      • getProxy

        public java.net.Proxy getProxy()
        Gets the proxy.
        Returns:
        the proxy
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

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

        public java.net.Proxy.Type type()
        Type.
        Returns:
        the type