Enum HAProxyProxiedProtocol

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

public enum HAProxyProxiedProtocol extends java.lang.Enum<HAProxyProxiedProtocol>
A protocol proxied by HAProxy which is represented by its transport protocol and address family.
  • Enum Constant Details

    • UNKNOWN

      public static final HAProxyProxiedProtocol UNKNOWN
      The UNKNOWN represents a connection which was forwarded for an unknown protocol and an unknown address family.
    • TCP4

      public static final HAProxyProxiedProtocol TCP4
      The TCP4 represents a connection which was forwarded for an IPv4 client over TCP.
    • TCP6

      public static final HAProxyProxiedProtocol TCP6
      The TCP6 represents a connection which was forwarded for an IPv6 client over TCP.
    • UDP4

      public static final HAProxyProxiedProtocol UDP4
      The UDP4 represents a connection which was forwarded for an IPv4 client over UDP.
    • UDP6

      public static final HAProxyProxiedProtocol UDP6
      The UDP6 represents a connection which was forwarded for an IPv6 client over UDP.
    • UNIX_STREAM

      public static final HAProxyProxiedProtocol UNIX_STREAM
      The UNIX_STREAM represents a connection which was forwarded for a UNIX stream socket.
    • UNIX_DGRAM

      public static final HAProxyProxiedProtocol UNIX_DGRAM
      The UNIX_DGRAM represents a connection which was forwarded for a UNIX datagram socket.
  • Field Details

  • Constructor Details

  • Method Details

    • values

      public static HAProxyProxiedProtocol[] 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 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 valueOf(byte tpafByte)
      Returns the HAProxyProxiedProtocol represented by the specified byte.
      Parameters:
      tpafByte - transport protocol and address family byte
    • byteValue

      public byte byteValue()
      Returns the byte value of this protocol and address family.
    • addressFamily

      public HAProxyProxiedProtocol.AddressFamily addressFamily()
      Returns the HAProxyProxiedProtocol.AddressFamily of this protocol and address family.
    • transportProtocol

      public HAProxyProxiedProtocol.TransportProtocol transportProtocol()
      Returns the HAProxyProxiedProtocol.TransportProtocol of this protocol and address family.