Package io.github.astrapi69.net.proxy
Class ProxyDecorator
- java.lang.Object
-
- io.github.astrapi69.net.proxy.ProxyDecorator
-
- All Implemented Interfaces:
java.io.Serializable
public class ProxyDecorator extends java.lang.Object implements java.io.Serializable
The classProxyDecorator
decorates a
object.Proxy
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ProxyDecorator(java.net.Proxy.Type proxyType, java.net.InetSocketAddress inetSocketAddress)
Instantiates a newProxyDecorator
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.
-
-
-
Constructor Detail
-
ProxyDecorator
public ProxyDecorator(java.net.Proxy.Type proxyType, java.net.InetSocketAddress inetSocketAddress)
Instantiates a newProxyDecorator
object.- Parameters:
proxyType
- the proxy typeinetSocketAddress
- 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 classjava.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 classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
type
public java.net.Proxy.Type type()
Type.- Returns:
- the type
-
-