public static enum HAProxyTLV.Type extends java.lang.Enum<HAProxyTLV.Type>
枚举常量和说明 |
---|
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 |
限定符和类型 | 方法和说明 |
---|---|
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)
返回带有指定名称的该类型的枚举常量。
|
static HAProxyTLV.Type[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
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
- 要返回的枚举常量的名称。java.lang.IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量,
则抛出 IllegalArgumentExceptionjava.lang.NullPointerException
- 如果参数为空值, 则抛出 NullPointerExceptionpublic 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 TLV