org.atmosphere.wasync
Enum Socket.EVENT

java.lang.Object
  extended by java.lang.Enum<Socket.EVENT>
      extended by org.atmosphere.wasync.Socket.EVENT
All Implemented Interfaces:
Serializable, Comparable<Socket.EVENT>
Enclosing interface:
Socket

public static enum Socket.EVENT
extends Enum<Socket.EVENT>


Enum Constant Summary
CLOSE
           
ERROR
           
HEADER
           
MESSAGE
           
STATUS
           
 
Method Summary
static Socket.EVENT valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Socket.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

CLOSE

public static final Socket.EVENT CLOSE

ERROR

public static final Socket.EVENT ERROR

HEADER

public static final Socket.EVENT HEADER

STATUS

public static final Socket.EVENT STATUS

MESSAGE

public static final Socket.EVENT MESSAGE
Method Detail

values

public static Socket.EVENT[] 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 (Socket.EVENT c : Socket.EVENT.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Socket.EVENT valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2013. All Rights Reserved.