
public static enum ConnectionHandler.ClosingType extends Enum<ConnectionHandler.ClosingType>
| Enum Constant and Description |
|---|
EOS
Denotes closure by end-of-stream.
|
ERROR
Denotes closure by error.
|
USER
Denotes closure by user request.
|
| Modifier and Type | Method and Description |
|---|---|
static ConnectionHandler.ClosingType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConnectionHandler.ClosingType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConnectionHandler.ClosingType USER
public static final ConnectionHandler.ClosingType EOS
public static final ConnectionHandler.ClosingType ERROR
public static ConnectionHandler.ClosingType[] values()
for (ConnectionHandler.ClosingType c : ConnectionHandler.ClosingType.values()) System.out.println(c);
public static ConnectionHandler.ClosingType 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