Enum 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 Detail

      • 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.
    • Method Detail

      • values

        public static HAProxyProxiedProtocol[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (HAProxyProxiedProtocol c : HAProxyProxiedProtocol.values())
            System.out.println(c);
        
        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
      • byteValue

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