public static enum HAProxyProxiedProtocol.AddressFamily extends Enum<HAProxyProxiedProtocol.AddressFamily>
Enum Constant and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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(String name)
Returns the enum constant of this type with the specified name.
|
static HAProxyProxiedProtocol.AddressFamily[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
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(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic 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()
Copyright © 2008–2024 The Netty Project. All rights reserved.