Package io.netty.handler.codec.haproxy
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>
,java.lang.constant.Constable
- Enclosing class:
HAProxyProxiedProtocol
public static enum HAProxyProxiedProtocol.AddressFamily
extends Enum<HAProxyProxiedProtocol.AddressFamily>
The address family of an HAProxy proxy protocol header.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
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. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final byte
private static final byte
The highest 4 bits of the transport protocol and address family byte contain the address family -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte
Returns the byte value of this address family.valueOf
(byte tpafByte) Returns theHAProxyProxiedProtocol.AddressFamily
represented 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.
-
-
Field Details
-
FAMILY_MASK
private static final byte FAMILY_MASKThe highest 4 bits of the transport protocol and address family byte contain the address family- See Also:
-
byteValue
private final byte byteValue
-
-
Constructor Details
-
AddressFamily
private AddressFamily(byte byteValue) Creates a new instance
-
-
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.AddressFamily
represented 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.
-