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.
  • Enum Constant Details

  • Field Details

    • FAMILY_MASK

      private static final byte FAMILY_MASK
      The 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

      public static HAProxyProxiedProtocol.AddressFamily[] 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 HAProxyProxiedProtocol.AddressFamily valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • valueOf

      public static HAProxyProxiedProtocol.AddressFamily valueOf(byte tpafByte)
      Returns the HAProxyProxiedProtocol.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.