Enum HAProxyTLV.Type

java.lang.Object
java.lang.Enum<HAProxyTLV.Type>
io.netty.handler.codec.haproxy.HAProxyTLV.Type
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<HAProxyTLV.Type>
Enclosing class:
HAProxyTLV

public static enum HAProxyTLV.Type extends java.lang.Enum<HAProxyTLV.Type>
The registered types a TLV can have regarding the PROXY protocol 1.5 spec
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    A TLV type that is not officially defined in the spec.
     
     
     
     
     
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static byte
    Returns the byte value for the HAProxyTLV.Type as defined in the PROXY protocol 1.5 spec.
    typeForByteValue(byte byteValue)
    Returns the HAProxyTLV.Type for a specific byte value as defined in the PROXY protocol 1.5 spec
    valueOf(java.lang.String name)
    Returns the enum constant of this type with the specified name.
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Enum

    clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • PP2_TYPE_ALPN

      public static final HAProxyTLV.Type PP2_TYPE_ALPN
    • PP2_TYPE_AUTHORITY

      public static final HAProxyTLV.Type PP2_TYPE_AUTHORITY
    • PP2_TYPE_SSL

      public static final HAProxyTLV.Type PP2_TYPE_SSL
    • PP2_TYPE_SSL_VERSION

      public static final HAProxyTLV.Type PP2_TYPE_SSL_VERSION
    • PP2_TYPE_SSL_CN

      public static final HAProxyTLV.Type PP2_TYPE_SSL_CN
    • PP2_TYPE_NETNS

      public static final HAProxyTLV.Type PP2_TYPE_NETNS
    • OTHER

      public static final HAProxyTLV.Type 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

      public static HAProxyTLV.Type[] 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

      public static HAProxyTLV.Type valueOf(java.lang.String name)
      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:
      java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
      java.lang.NullPointerException - if the argument is null
    • typeForByteValue

      public static HAProxyTLV.Type typeForByteValue(byte byteValue)
      Returns the HAProxyTLV.Type for a specific byte value as defined in the PROXY protocol 1.5 spec

      If 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

      public static byte byteValueForType(HAProxyTLV.Type type)
      Returns the byte value for the HAProxyTLV.Type as defined in the PROXY protocol 1.5 spec.
      Parameters:
      type - the HAProxyTLV.Type
      Returns:
      the byte value of the HAProxyTLV.Type.