public enum HAProxyProtocolVersion extends java.lang.Enum<HAProxyProtocolVersion>
Enum Constant and Description |
---|
V1
The ONE proxy protocol version represents a version 1 (human-readable) header.
|
V2
The TWO proxy protocol version represents a version 2 (binary) header.
|
Modifier and Type | Method and Description |
---|---|
byte |
byteValue()
Returns the byte value of this version.
|
static HAProxyProtocolVersion |
valueOf(byte verCmdByte)
Returns the
HAProxyProtocolVersion represented by the highest 4 bits of the specified byte. |
static HAProxyProtocolVersion |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static HAProxyProtocolVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HAProxyProtocolVersion V1
public static final HAProxyProtocolVersion V2
public static HAProxyProtocolVersion[] values()
for (HAProxyProtocolVersion c : HAProxyProtocolVersion.values()) System.out.println(c);
public static HAProxyProtocolVersion valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static HAProxyProtocolVersion valueOf(byte verCmdByte)
HAProxyProtocolVersion
represented by the highest 4 bits of the specified byte.verCmdByte
- protocol version and command bytepublic byte byteValue()
Copyright © 2008–2018 The Netty Project. All rights reserved.