public static enum HAProxyTLV.Type extends java.lang.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 HAProxyTLV.Type |
typeForByteValue(byte byteValue)
Returns the 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(java.lang.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(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 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 TLVCopyright © 2008–2018 The Netty Project. All rights reserved.