public static enum HAProxyProxiedProtocol.TransportProtocol extends 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 unknown protocol.
|
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(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
public static HAProxyProxiedProtocol.TransportProtocol[] values()
for (HAProxyProxiedProtocol.TransportProtocol c : HAProxyProxiedProtocol.TransportProtocol.values()) System.out.println(c);
public static HAProxyProxiedProtocol.TransportProtocol valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- 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()
Copyright © 2008–2024 The Netty Project. All rights reserved.