Package io.netty.handler.codec.haproxy
Enum HAProxyTLV.Type
- All Implemented Interfaces:
Serializable
,Comparable<HAProxyTLV.Type>
,java.lang.constant.Constable
- Enclosing class:
HAProxyTLV
The registered types a TLV can have regarding the PROXY protocol 1.5 spec
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA TLV type that is not officially defined in the spec. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic byte
Returns the byte value for theHAProxyTLV.Type
as defined in the PROXY protocol 1.5 spec.static HAProxyTLV.Type
typeForByteValue
(byte byteValue) Returns theHAProxyTLV.Type
for a specific byte value as defined in the PROXY protocol 1.5 specstatic HAProxyTLV.Type
Returns the enum constant of this type with the specified name.static HAProxyTLV.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
PP2_TYPE_ALPN
-
PP2_TYPE_AUTHORITY
-
PP2_TYPE_SSL
-
PP2_TYPE_SSL_VERSION
-
PP2_TYPE_SSL_CN
-
PP2_TYPE_NETNS
-
OTHER
A TLV type that is not officially defined in the spec. May be used for nonstandard TLVs
-
-
Constructor Details
-
Type
private Type()
-
-
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
-
typeForByteValue
Returns theHAProxyTLV.Type
for a specific byte value as defined in the PROXY protocol 1.5 specIf the byte value is not an official one, it will return
OTHER
.- Parameters:
byteValue
- the byte for a type- Returns:
- the
HAProxyTLV.Type
of a TLV
-
byteValueForType
Returns the byte value for theHAProxyTLV.Type
as defined in the PROXY protocol 1.5 spec.- Parameters:
type
- theHAProxyTLV.Type
- Returns:
- the byte value of the
HAProxyTLV.Type
.
-