public static enum ConnectorConfig.ProxyProtocol extends Enum<ConnectorConfig.ProxyProtocol>
Enum Constant and Description |
---|
HA_PROXY
Only HAProxy's PROXY protocol is allowed to connect.
|
NONE
No proxying protocol is allowed to connect.
|
Modifier and Type | Method and Description |
---|---|
static ConnectorConfig.ProxyProtocol |
fromName(String name)
Lookup the value from a string.
|
static ConnectorConfig.ProxyProtocol |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConnectorConfig.ProxyProtocol[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConnectorConfig.ProxyProtocol NONE
public static final ConnectorConfig.ProxyProtocol HA_PROXY
public static ConnectorConfig.ProxyProtocol[] values()
for (ConnectorConfig.ProxyProtocol c : ConnectorConfig.ProxyProtocol.values()) System.out.println(c);
public static ConnectorConfig.ProxyProtocol 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 ConnectorConfig.ProxyProtocol fromName(String name)
Supports approximate matching of values.
name
- The name of the value to lookupIllegalArgumentException
- If the name is null or it cannot be
converted to a valueCopyright © 2021 Push Technology Ltd. All Rights Reserved.