public final class HAProxyMessage
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
HAProxyCommand |
command()
Returns the
HAProxyCommand of this HAProxyMessage . |
java.lang.String |
destinationAddress()
Returns the human-readable destination address of this
HAProxyMessage . |
int |
destinationPort()
Returns the UDP/TCP destination port of this
HAProxyMessage . |
HAProxyProtocolVersion |
protocolVersion()
Returns the
HAProxyProtocolVersion of this HAProxyMessage . |
HAProxyProxiedProtocol |
proxiedProtocol()
Returns the
HAProxyProxiedProtocol of this HAProxyMessage . |
java.lang.String |
sourceAddress()
Returns the human-readable source address of this
HAProxyMessage . |
int |
sourcePort()
Returns the UDP/TCP source port of this
HAProxyMessage . |
java.util.List<HAProxyTLV> |
tlvs()
Returns a list of
HAProxyTLV or an empty list if no TLVs are present. |
public HAProxyProtocolVersion protocolVersion()
HAProxyProtocolVersion
of this HAProxyMessage
.public HAProxyCommand command()
HAProxyCommand
of this HAProxyMessage
.public HAProxyProxiedProtocol proxiedProtocol()
HAProxyProxiedProtocol
of this HAProxyMessage
.public java.lang.String sourceAddress()
HAProxyMessage
.public java.lang.String destinationAddress()
HAProxyMessage
.public int sourcePort()
HAProxyMessage
.public int destinationPort()
HAProxyMessage
.public java.util.List<HAProxyTLV> tlvs()
HAProxyTLV
or an empty list if no TLVs are present.
TLVs are only available for the Proxy Protocol V2
Copyright © 2008–2018 The Netty Project. All rights reserved.