public enum ConnectionResponse extends java.lang.Enum<ConnectionResponse>
| Enum Constant and Description |
|---|
_INVALID |
FAILED_INCOMPATIBLE_PROTOCOL |
FAILED_INVALID_PASSWORD |
FAILED_INVALID_USER |
FAILED_OTHER |
FAILED_SYSTEM_LOCKED |
FAILED_USER_ALREADY_CONNECTED |
FAILED_USER_LOCKED |
SUCCESS |
| Modifier and Type | Field and Description |
|---|---|
byte |
val |
| Modifier and Type | Method and Description |
|---|---|
byte |
get() |
static ConnectionResponse |
get(byte value) |
static java.util.Collection<ConnectionResponse> |
validValues() |
static ConnectionResponse |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ConnectionResponse[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConnectionResponse SUCCESS
public static final ConnectionResponse FAILED_INVALID_USER
public static final ConnectionResponse FAILED_INVALID_PASSWORD
public static final ConnectionResponse FAILED_USER_ALREADY_CONNECTED
public static final ConnectionResponse FAILED_OTHER
public static final ConnectionResponse FAILED_INCOMPATIBLE_PROTOCOL
public static final ConnectionResponse FAILED_USER_LOCKED
public static final ConnectionResponse FAILED_SYSTEM_LOCKED
public static final ConnectionResponse _INVALID
public static ConnectionResponse[] values()
for (ConnectionResponse c : ConnectionResponse.values()) System.out.println(c);
public static ConnectionResponse valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic byte get()
public static ConnectionResponse get(byte value)
public static java.util.Collection<ConnectionResponse> validValues()