com.glines.socketio.server
Enum SocketIOFrame.FrameType

java.lang.Object
  extended by java.lang.Enum<SocketIOFrame.FrameType>
      extended by com.glines.socketio.server.SocketIOFrame.FrameType
All Implemented Interfaces:
Serializable, Comparable<SocketIOFrame.FrameType>
Enclosing class:
SocketIOFrame

public static enum SocketIOFrame.FrameType
extends Enum<SocketIOFrame.FrameType>


Enum Constant Summary
CLOSE
           
DATA
           
FRAGMENT
           
HEARTBEAT_INTERVAL
           
PING
           
PONG
           
SESSION_ID
           
UNKNOWN
           
 
Method Summary
static SocketIOFrame.FrameType fromInt(int val)
           
 int value()
           
static SocketIOFrame.FrameType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SocketIOFrame.FrameType[] 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

UNKNOWN

public static final SocketIOFrame.FrameType UNKNOWN

CLOSE

public static final SocketIOFrame.FrameType CLOSE

SESSION_ID

public static final SocketIOFrame.FrameType SESSION_ID

HEARTBEAT_INTERVAL

public static final SocketIOFrame.FrameType HEARTBEAT_INTERVAL

PING

public static final SocketIOFrame.FrameType PING

PONG

public static final SocketIOFrame.FrameType PONG

DATA

public static final SocketIOFrame.FrameType DATA

FRAGMENT

public static final SocketIOFrame.FrameType FRAGMENT
Method Detail

values

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

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

valueOf

public static SocketIOFrame.FrameType 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

value

public int value()

fromInt

public static SocketIOFrame.FrameType fromInt(int val)


Copyright © 2010-2011. All Rights Reserved.