public enum HAProxyProxiedProtocol extends Enum<HAProxyProxiedProtocol>
Modifier and Type | Class and Description |
---|---|
static class |
HAProxyProxiedProtocol.AddressFamily
The address family of an HAProxy proxy protocol header.
|
static class |
HAProxyProxiedProtocol.TransportProtocol
The transport protocol of an HAProxy proxy protocol header
|
Enum Constant and Description |
---|
TCP4
The TCP4 represents a connection which was forwarded for an IPv4 client over TCP.
|
TCP6
The TCP6 represents a connection which was forwarded for an IPv6 client over TCP.
|
UDP4
The UDP4 represents a connection which was forwarded for an IPv4 client over UDP.
|
UDP6
The UDP6 represents a connection which was forwarded for an IPv6 client over UDP.
|
UNIX_DGRAM
The UNIX_DGRAM represents a connection which was forwarded for a UNIX datagram socket.
|
UNIX_STREAM
The UNIX_STREAM represents a connection which was forwarded for a UNIX stream socket.
|
UNKNOWN
The UNKNOWN represents a connection which was forwarded for an unknown protocol and an unknown address family.
|
Modifier and Type | Method and Description |
---|---|
HAProxyProxiedProtocol.AddressFamily |
addressFamily()
Returns the
HAProxyProxiedProtocol.AddressFamily of this protocol and address family. |
byte |
byteValue()
Returns the byte value of this protocol and address family.
|
HAProxyProxiedProtocol.TransportProtocol |
transportProtocol()
Returns the
HAProxyProxiedProtocol.TransportProtocol of this protocol and address family. |
static HAProxyProxiedProtocol |
valueOf(byte tpafByte)
Returns the
HAProxyProxiedProtocol represented by the specified byte. |
static HAProxyProxiedProtocol |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HAProxyProxiedProtocol[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HAProxyProxiedProtocol UNKNOWN
public static final HAProxyProxiedProtocol TCP4
public static final HAProxyProxiedProtocol TCP6
public static final HAProxyProxiedProtocol UDP4
public static final HAProxyProxiedProtocol UDP6
public static final HAProxyProxiedProtocol UNIX_STREAM
public static final HAProxyProxiedProtocol UNIX_DGRAM
public static HAProxyProxiedProtocol[] values()
for (HAProxyProxiedProtocol c : HAProxyProxiedProtocol.values()) System.out.println(c);
public static HAProxyProxiedProtocol 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 valueOf(byte tpafByte)
HAProxyProxiedProtocol
represented by the specified byte.tpafByte
- transport protocol and address family bytepublic byte byteValue()
public HAProxyProxiedProtocol.AddressFamily addressFamily()
HAProxyProxiedProtocol.AddressFamily
of this protocol and address family.public HAProxyProxiedProtocol.TransportProtocol transportProtocol()
HAProxyProxiedProtocol.TransportProtocol
of this protocol and address family.Copyright © 2008–2017 The Netty Project. All rights reserved.