|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<Event>
org.atmosphere.wasync.Event
public enum Event
This class define the type of event a Function or Decoder will be called with.
| Enum Constant Summary | |
|---|---|
CLOSE
This event is fired when the connection gets closed. |
|
ERROR
This event is fired when unexpected error happens. |
|
HEADERS
This event is fire when the response's headers is received. |
|
MESSAGE
This event is fired every time a new message is received. |
|
MESSAGE_BYTES
This event is fire when the response's bytes are received. |
|
OPEN
This event is fired when the connection is open. |
|
REOPENED
This event is fired every time the connection re-opened |
|
STATUS
This event is fire when the response's status is received. |
|
TRANSPORT
This event is fire when the connection has been established. |
|
| Method Summary | |
|---|---|
static Event |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Event[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final Event OPEN
public static final Event CLOSE
public static final Event MESSAGE
public static final Event REOPENED
public static final Event ERROR
public static final Event STATUS
public static final Event HEADERS
public static final Event MESSAGE_BYTES
public static final Event TRANSPORT
| Method Detail |
|---|
public static Event[] values()
for (Event c : Event.values()) System.out.println(c);
public static Event valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||