程序包 | 说明 |
---|---|
io.netty.handler.codec.haproxy |
Decodes an HAProxy proxy protocol header
|
限定符和类型 | 方法和说明 |
---|---|
HAProxyProtocolVersion |
HAProxyMessage.protocolVersion()
Returns the
HAProxyProtocolVersion of this HAProxyMessage . |
static HAProxyProtocolVersion |
HAProxyProtocolVersion.valueOf(byte verCmdByte)
Returns the
HAProxyProtocolVersion represented by the highest 4 bits of the specified byte. |
static HAProxyProtocolVersion |
HAProxyProtocolVersion.valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static HAProxyProtocolVersion[] |
HAProxyProtocolVersion.values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
限定符和类型 | 方法和说明 |
---|---|
static ProtocolDetectionResult<HAProxyProtocolVersion> |
HAProxyMessageDecoder.detectProtocol(ByteBuf buffer)
Returns the
ProtocolDetectionResult for the given ByteBuf . |
构造器和说明 |
---|
HAProxyMessage(HAProxyProtocolVersion protocolVersion,
HAProxyCommand command,
HAProxyProxiedProtocol proxiedProtocol,
java.lang.String sourceAddress,
java.lang.String destinationAddress,
int sourcePort,
int destinationPort)
Creates a new instance of HAProxyMessage.
|
HAProxyMessage(HAProxyProtocolVersion protocolVersion,
HAProxyCommand command,
HAProxyProxiedProtocol proxiedProtocol,
java.lang.String sourceAddress,
java.lang.String destinationAddress,
int sourcePort,
int destinationPort,
java.util.List<? extends HAProxyTLV> tlvs)
Creates a new instance of HAProxyMessage.
|