public enum ConnectionState extends java.lang.Enum<ConnectionState>
| Enum Constant and Description |
|---|
CLOSED |
CONNECTED |
DELETED |
REQUEST_RECEIVED |
REQUEST_SENT |
SUGGESTED |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
closeOnAtomDeactivate(ConnectionState state) |
static ConnectionState |
create(ConnectionEventType msg) |
static ConnectionState |
fromURI(java.net.URI uri)
Tries to match the given URI against all enum values.
|
java.net.URI |
getURI() |
static ConnectionState |
parseString(java.lang.String fragment)
Tries to match the given string against all enum values.
|
ConnectionState |
transit(ConnectionEventType msg) |
static ConnectionState |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ConnectionState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConnectionState SUGGESTED
public static final ConnectionState REQUEST_SENT
public static final ConnectionState REQUEST_RECEIVED
public static final ConnectionState CONNECTED
public static final ConnectionState CLOSED
public static final ConnectionState DELETED
public static ConnectionState[] values()
for (ConnectionState c : ConnectionState.values()) System.out.println(c);
public static ConnectionState 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 static ConnectionState create(ConnectionEventType msg)
public ConnectionState transit(ConnectionEventType msg)
public static boolean closeOnAtomDeactivate(ConnectionState state)
public java.net.URI getURI()
public static ConnectionState parseString(java.lang.String fragment)
fragment - string to matchpublic static ConnectionState fromURI(java.net.URI uri)
uri - URI to matchCopyright © 2019. All Rights Reserved.