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 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(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 - 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException - 如果参数为空值public 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.TypeHAProxyTLV.Type.