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