public enum HAProxyProxiedProtocol extends java.lang.Enum<HAProxyProxiedProtocol>
限定符和类型 | 类和说明 |
---|---|
static class |
HAProxyProxiedProtocol.AddressFamily
The address family of an HAProxy proxy protocol header.
|
static class |
HAProxyProxiedProtocol.TransportProtocol
The transport protocol of an HAProxy proxy protocol header
|
枚举常量和说明 |
---|
TCP4
The TCP4 represents a connection which was forwarded for an IPv4 client over TCP.
|
TCP6
The TCP6 represents a connection which was forwarded for an IPv6 client over TCP.
|
UDP4
The UDP4 represents a connection which was forwarded for an IPv4 client over UDP.
|
UDP6
The UDP6 represents a connection which was forwarded for an IPv6 client over UDP.
|
UNIX_DGRAM
The UNIX_DGRAM represents a connection which was forwarded for a UNIX datagram socket.
|
UNIX_STREAM
The UNIX_STREAM represents a connection which was forwarded for a UNIX stream socket.
|
UNKNOWN
The UNKNOWN represents a connection which was forwarded for an unknown protocol and an unknown address family.
|
限定符和类型 | 方法和说明 |
---|---|
HAProxyProxiedProtocol.AddressFamily |
addressFamily()
Returns the
HAProxyProxiedProtocol.AddressFamily of this protocol and address family. |
byte |
byteValue()
Returns the byte value of this protocol and address family.
|
HAProxyProxiedProtocol.TransportProtocol |
transportProtocol()
Returns the
HAProxyProxiedProtocol.TransportProtocol of this protocol and address family. |
static HAProxyProxiedProtocol |
valueOf(byte tpafByte)
Returns the
HAProxyProxiedProtocol represented by the specified byte. |
static HAProxyProxiedProtocol |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static HAProxyProxiedProtocol[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final HAProxyProxiedProtocol UNKNOWN
public static final HAProxyProxiedProtocol TCP4
public static final HAProxyProxiedProtocol TCP6
public static final HAProxyProxiedProtocol UDP4
public static final HAProxyProxiedProtocol UDP6
public static final HAProxyProxiedProtocol UNIX_STREAM
public static final HAProxyProxiedProtocol UNIX_DGRAM
public static HAProxyProxiedProtocol[] values()
for (HAProxyProxiedProtocol c : HAProxyProxiedProtocol.values()) System.out.println(c);
public static HAProxyProxiedProtocol valueOf(java.lang.String name)
name
- 要返回的枚举常量的名称。java.lang.IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量,
则抛出 IllegalArgumentExceptionjava.lang.NullPointerException
- 如果参数为空值, 则抛出 NullPointerExceptionpublic static HAProxyProxiedProtocol valueOf(byte tpafByte)
HAProxyProxiedProtocol
represented by the specified byte.tpafByte
- transport protocol and address family bytepublic byte byteValue()
public HAProxyProxiedProtocol.AddressFamily addressFamily()
HAProxyProxiedProtocol.AddressFamily
of this protocol and address family.public HAProxyProxiedProtocol.TransportProtocol transportProtocol()
HAProxyProxiedProtocol.TransportProtocol
of this protocol and address family.