Enum HAProxyProxiedProtocol.AddressFamily

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

public static enum HAProxyProxiedProtocol.AddressFamily extends java.lang.Enum<HAProxyProxiedProtocol.AddressFamily>
The address family of an HAProxy proxy protocol header.
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    The 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

    Fields
    Modifier and Type
    Field
    Description
    private 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
    Modifier
    Constructor
    Description
    private
    AddressFamily(byte byteValue)
    Creates a new instance
  • Method Summary

    Modifier and Type
    Method
    Description
    byte
    Returns the byte value of this address family.
    valueOf(byte tpafByte)
    Returns the HAProxyProxiedProtocol.AddressFamily represented by the highest 4 bits of the specified byte.
    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

  • 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(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
    • 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.