Top Description Fields Constructors Methods
io.netty.handler.codec.haproxy

public final Enum HAProxyCommand

extends Enum<HAProxyCommand>
Class Inheritance

The command of an HAProxy proxy protocol header

Field Summary

Modifier and TypeField and Description
private final byte
private static final byte
COMMAND_MASK

The command is specified in the lowest 4 bits of the protocol version and command byte

public static final HAProxyCommand
LOCAL

The LOCAL command represents a connection that was established on purpose by the proxy without being relayed.

public static final HAProxyCommand
PROXY

The PROXY command represents a connection that was established on behalf of another node, and reflects the original connection endpoints.

Constructor Summary

AccessConstructor and Description
private
HAProxyCommand(byte byteValue)

Creates a new instance

Method Summary

Modifier and TypeMethod and Description
public byte
byteValue()

Returns the byte value of this command.

public static HAProxyCommand
public static HAProxyCommand
valueOf(byte
protocol version and command byte
verCmdByte
)

Returns the HAProxyCommand represented by the lowest 4 bits of the specified byte.

public static HAProxyCommand[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

byteValueback to summary
private final byte byteValue
COMMAND_MASKback to summary
private static final byte COMMAND_MASK

The command is specified in the lowest 4 bits of the protocol version and command byte

LOCALback to summary
public static final HAProxyCommand LOCAL

The LOCAL command represents a connection that was established on purpose by the proxy without being relayed.

PROXYback to summary
public static final HAProxyCommand PROXY

The PROXY command represents a connection that was established on behalf of another node, and reflects the original connection endpoints.

Constructor Detail

HAProxyCommandback to summary
private HAProxyCommand(byte byteValue)

Creates a new instance

Method Detail

byteValueback to summary
public byte byteValue()

Returns the byte value of this command.

valueOfback to summary
public static HAProxyCommand valueOf(String name)
valueOfback to summary
public static HAProxyCommand valueOf(byte verCmdByte)

Returns the HAProxyCommand represented by the lowest 4 bits of the specified byte.

Parameters
verCmdByte:byte

protocol version and command byte

valuesback to summary
public static HAProxyCommand[] values()