public static enum HAProxyProxiedProtocol.TransportProtocol extends java.lang.Enum<HAProxyProxiedProtocol.TransportProtocol>
Enum Constant and Description |
---|
DGRAM
The DGRAM transport protocol represents a connection which was forwarded for a UDP connection.
|
STREAM
The STREAM transport protocol represents a connection which was forwarded for a TCP connection.
|
UNSPEC
The UNSPEC transport protocol represents a connection which was forwarded for an unkown protocol.
|
Modifier and Type | Field and Description |
---|---|
private static byte |
TRANSPORT_MASK
The transport protocol is specified in the lowest 4 bits of the transport protocol and address family byte
|
private byte |
transportByte |
Modifier and Type | Method and Description |
---|---|
byte |
byteValue()
Returns the byte value of this transport protocol.
|
static HAProxyProxiedProtocol.TransportProtocol |
valueOf(byte tpafByte)
Returns the
HAProxyProxiedProtocol.TransportProtocol represented by the lowest 4 bits of the specified byte. |
static HAProxyProxiedProtocol.TransportProtocol |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static HAProxyProxiedProtocol.TransportProtocol[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HAProxyProxiedProtocol.TransportProtocol UNSPEC
public static final HAProxyProxiedProtocol.TransportProtocol STREAM
public static final HAProxyProxiedProtocol.TransportProtocol DGRAM
private static final byte TRANSPORT_MASK
private final byte transportByte
public static HAProxyProxiedProtocol.TransportProtocol[] values()
for (HAProxyProxiedProtocol.TransportProtocol c : HAProxyProxiedProtocol.TransportProtocol.values()) System.out.println(c);
public static HAProxyProxiedProtocol.TransportProtocol valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static HAProxyProxiedProtocol.TransportProtocol valueOf(byte tpafByte)
HAProxyProxiedProtocol.TransportProtocol
represented by the lowest 4 bits of the specified byte.tpafByte
- transport protocol and address family bytepublic byte byteValue()