Enum HAProxyProxiedProtocol.AddressFamily
java.lang.Object
java.lang.Enum<HAProxyProxiedProtocol.AddressFamily>
io.netty.handler.codec.haproxy.HAProxyProxiedProtocol.AddressFamily
- All Implemented Interfaces:
Serializable, Comparable<HAProxyProxiedProtocol.AddressFamily>
- Enclosing class:
HAProxyProxiedProtocol
public static enum HAProxyProxiedProtocol.AddressFamily
extends Enum<HAProxyProxiedProtocol.AddressFamily>
The address family of an HAProxy proxy protocol header.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe IPV4 address family represents a connection which was forwarded for an IPV4 client.The IPV6 address family represents a connection which was forwarded for an IPV6 client.The UNIX address family represents a connection which was forwarded for a unix socket.The UNSPECIFIED address family represents a connection which was forwarded for an unknown protocol. -
Method Summary
Modifier and TypeMethodDescriptionbyteReturns the byte value of this address family.valueOf(byte tpafByte) Returns theHAProxyProxiedProtocol.AddressFamilyrepresented by the highest 4 bits of the specified byte.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.
-
Enum Constant Details
-
AF_UNSPEC
The UNSPECIFIED address family represents a connection which was forwarded for an unknown protocol. -
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.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
valueOf
Returns theHAProxyProxiedProtocol.AddressFamilyrepresented by the highest 4 bits of the specified byte.- Parameters:
tpafByte- transport protocol and address family byte
-
byteValue
public byte byteValue()Returns the byte value of this address family.
-