Class ProxyConnectionEvent
java.lang.Object
io.netty.handler.proxy.ProxyConnectionEvent
public final class ProxyConnectionEvent
extends java.lang.Object
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final java.lang.Stringprivate final java.net.SocketAddressprivate final java.lang.Stringprivate final java.net.SocketAddressprivate java.lang.String -
Constructor Summary
ConstructorsConstructorDescriptionProxyConnectionEvent(java.lang.String protocol, java.lang.String authScheme, java.net.SocketAddress proxyAddress, java.net.SocketAddress destinationAddress) Creates a new event that indicates a successful connection attempt to the destination address. -
Method Summary
Modifier and TypeMethodDescriptionjava.lang.StringReturns the name of the authentication scheme in use.<T extends java.net.SocketAddress>
TReturns the address of the destination.java.lang.Stringprotocol()Returns the name of the proxy protocol in use.<T extends java.net.SocketAddress>
TReturns the address of the proxy server.java.lang.StringtoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
protocol
private final java.lang.String protocol -
authScheme
private final java.lang.String authScheme -
proxyAddress
private final java.net.SocketAddress proxyAddress -
destinationAddress
private final java.net.SocketAddress destinationAddress -
strVal
private java.lang.String strVal
-
-
Constructor Details
-
ProxyConnectionEvent
public ProxyConnectionEvent(java.lang.String protocol, java.lang.String authScheme, java.net.SocketAddress proxyAddress, java.net.SocketAddress destinationAddress) Creates a new event that indicates a successful connection attempt to the destination address.
-
-
Method Details
-
protocol
public java.lang.String protocol()Returns the name of the proxy protocol in use. -
authScheme
public java.lang.String authScheme()Returns the name of the authentication scheme in use. -
proxyAddress
public <T extends java.net.SocketAddress> T proxyAddress()Returns the address of the proxy server. -
destinationAddress
public <T extends java.net.SocketAddress> T destinationAddress()Returns the address of the destination. -
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-