public static enum BaseConnection.State extends Enum<BaseConnection.State>
Enum Constant and Description |
---|
CLOSED
Close handshake responded.
|
CLOSING
Close handshake initiated, response pending.
|
OPENED
Connection created and connected
|
OPENING
Connection created, but not yet connected
|
Modifier and Type | Method and Description |
---|---|
static BaseConnection.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BaseConnection.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BaseConnection.State OPENING
public static final BaseConnection.State OPENED
public static final BaseConnection.State CLOSING
public static final BaseConnection.State CLOSED
public static BaseConnection.State[] values()
for (BaseConnection.State c : BaseConnection.State.values()) System.out.println(c);
public static BaseConnection.State 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 nullCopyright © 1995-2012 Mort Bay Consulting. All Rights Reserved.