public static enum HAProxyTLV.Type extends Enum<HAProxyTLV.Type>
Enum Constant and Description |
---|
OTHER
A TLV type that is not officially defined in the spec.
|
PP2_TYPE_ALPN |
PP2_TYPE_AUTHORITY |
PP2_TYPE_NETNS |
PP2_TYPE_SSL |
PP2_TYPE_SSL_CN |
PP2_TYPE_SSL_VERSION |
Modifier and Type | Method and Description |
---|---|
static byte |
byteValueForType(HAProxyTLV.Type type)
Returns the byte value for the
HAProxyTLV.Type as defined in the PROXY protocol 1.5 spec. |
static HAProxyTLV.Type |
typeForByteValue(byte byteValue)
Returns the
HAProxyTLV.Type for a specific byte value as defined in the PROXY protocol 1.5 spec
If the byte value is not an official one, it will return OTHER . |
static HAProxyTLV.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HAProxyTLV.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HAProxyTLV.Type PP2_TYPE_ALPN
public static final HAProxyTLV.Type PP2_TYPE_AUTHORITY
public static final HAProxyTLV.Type PP2_TYPE_SSL
public static final HAProxyTLV.Type PP2_TYPE_SSL_VERSION
public static final HAProxyTLV.Type PP2_TYPE_SSL_CN
public static final HAProxyTLV.Type PP2_TYPE_NETNS
public static final HAProxyTLV.Type OTHER
public static HAProxyTLV.Type[] values()
for (HAProxyTLV.Type c : HAProxyTLV.Type.values()) System.out.println(c);
public static HAProxyTLV.Type valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static HAProxyTLV.Type typeForByteValue(byte byteValue)
HAProxyTLV.Type
for a specific byte value as defined in the PROXY protocol 1.5 spec
If the byte value is not an official one, it will return OTHER
.
byteValue
- the byte for a typeHAProxyTLV.Type
of a TLVpublic static byte byteValueForType(HAProxyTLV.Type type)
HAProxyTLV.Type
as defined in the PROXY protocol 1.5 spec.type
- the HAProxyTLV.Type
HAProxyTLV.Type
.Copyright © 2008–2024 The Netty Project. All rights reserved.