public enum ProxyProtocolSupportType extends Enum<ProxyProtocolSupportType>
Enum Constant and Description |
---|
AUTO
Each connection of the same
HttpServer will auto detect whether there is proxy protocol. |
OFF
Disable the proxy protocol support
|
ON
Enable support for the
"HAProxy proxy protocol"
for deriving information about the address of the remote peer. |
Modifier and Type | Method and Description |
---|---|
static ProxyProtocolSupportType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ProxyProtocolSupportType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ProxyProtocolSupportType AUTO
HttpServer
will auto detect whether there is proxy protocol.
The HttpServer
can support multiple clients(or reverse proxy server like HaProxy)
with and without proxy protocol enabled at the same time.public static final ProxyProtocolSupportType ON
"HAProxy proxy protocol"
for deriving information about the address of the remote peer.public static final ProxyProtocolSupportType OFF
public static ProxyProtocolSupportType[] values()
for (ProxyProtocolSupportType c : ProxyProtocolSupportType.values()) System.out.println(c);
public static ProxyProtocolSupportType 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 null