public static enum HAProxyProxiedProtocol.TransportProtocol extends java.lang.Enum<HAProxyProxiedProtocol.TransportProtocol>
枚举常量和说明 |
---|
DGRAM
The DGRAM transport protocol represents a connection which was forwarded for a UDP connection.
|
STREAM
The STREAM transport protocol represents a connection which was forwarded for a TCP connection.
|
UNSPEC
The UNSPEC transport protocol represents a connection which was forwarded for an unknown protocol.
|
限定符和类型 | 方法和说明 |
---|---|
byte |
byteValue()
Returns the byte value of this transport protocol.
|
static HAProxyProxiedProtocol.TransportProtocol |
valueOf(byte tpafByte)
Returns the
HAProxyProxiedProtocol.TransportProtocol represented by the lowest 4 bits of the specified byte. |
static HAProxyProxiedProtocol.TransportProtocol |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static HAProxyProxiedProtocol.TransportProtocol[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final HAProxyProxiedProtocol.TransportProtocol UNSPEC
public static final HAProxyProxiedProtocol.TransportProtocol STREAM
public static final HAProxyProxiedProtocol.TransportProtocol DGRAM
public static HAProxyProxiedProtocol.TransportProtocol[] values()
for (HAProxyProxiedProtocol.TransportProtocol c : HAProxyProxiedProtocol.TransportProtocol.values()) System.out.println(c);
public static HAProxyProxiedProtocol.TransportProtocol valueOf(java.lang.String name)
name
- 要返回的枚举常量的名称。java.lang.IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量,
则抛出 IllegalArgumentExceptionjava.lang.NullPointerException
- 如果参数为空值, 则抛出 NullPointerExceptionpublic static HAProxyProxiedProtocol.TransportProtocol valueOf(byte tpafByte)
HAProxyProxiedProtocol.TransportProtocol
represented by the lowest 4 bits of the specified byte.tpafByte
- transport protocol and address family bytepublic byte byteValue()