Package org.atmosphere.gwt20.client
Enum AtmosphereResponseImpl.State
- java.lang.Object
-
- java.lang.Enum<AtmosphereResponseImpl.State>
-
- org.atmosphere.gwt20.client.AtmosphereResponseImpl.State
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<AtmosphereResponseImpl.State>
- Enclosing class:
- AtmosphereResponseImpl
public static enum AtmosphereResponseImpl.State extends java.lang.Enum<AtmosphereResponseImpl.State>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CLOSEDERRORMESSAGE_PUBLISHEDMESSAGE_RECEIVEDOPENINGRE_OPENINGUNSUBSCRIBE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AtmosphereResponseImpl.StatefromString(java.lang.String s)java.lang.StringtoString()static AtmosphereResponseImpl.StatevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static AtmosphereResponseImpl.State[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MESSAGE_RECEIVED
public static final AtmosphereResponseImpl.State MESSAGE_RECEIVED
-
MESSAGE_PUBLISHED
public static final AtmosphereResponseImpl.State MESSAGE_PUBLISHED
-
OPENING
public static final AtmosphereResponseImpl.State OPENING
-
RE_OPENING
public static final AtmosphereResponseImpl.State RE_OPENING
-
CLOSED
public static final AtmosphereResponseImpl.State CLOSED
-
UNSUBSCRIBE
public static final AtmosphereResponseImpl.State UNSUBSCRIBE
-
ERROR
public static final AtmosphereResponseImpl.State ERROR
-
-
Method Detail
-
values
public static AtmosphereResponseImpl.State[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AtmosphereResponseImpl.State c : AtmosphereResponseImpl.State.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AtmosphereResponseImpl.State valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Enum<AtmosphereResponseImpl.State>
-
fromString
public static AtmosphereResponseImpl.State fromString(java.lang.String s)
-
-