public enum ServerConnectionType extends Enum<ServerConnectionType>
| Enum Constant and Description |
|---|
DEFAULT
Enum value Default.
|
PROXY
Enum value Proxy.
|
REDIRECT
Enum value Redirect.
|
| Modifier and Type | Method and Description |
|---|---|
static ServerConnectionType |
fromString(String value)
Parses a serialized value to a ServerConnectionType instance.
|
String |
toString() |
static ServerConnectionType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ServerConnectionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ServerConnectionType DEFAULT
public static final ServerConnectionType PROXY
public static final ServerConnectionType REDIRECT
public static ServerConnectionType[] values()
for (ServerConnectionType c : ServerConnectionType.values()) System.out.println(c);
public static ServerConnectionType 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 ServerConnectionType fromString(String value)
value - the serialized value to parse.public String toString()
toString in class Enum<ServerConnectionType>Copyright © 2019. All rights reserved.