org.atmosphere.socketio.transport
Enum SocketIOPacketImpl.PacketType

java.lang.Object
  extended by java.lang.Enum<SocketIOPacketImpl.PacketType>
      extended by org.atmosphere.socketio.transport.SocketIOPacketImpl.PacketType
All Implemented Interfaces:
Serializable, Comparable<SocketIOPacketImpl.PacketType>
Enclosing class:
SocketIOPacketImpl

public static enum SocketIOPacketImpl.PacketType
extends Enum<SocketIOPacketImpl.PacketType>


Enum Constant Summary
ACK
           
CONNECT
           
DISCONNECT
           
ERROR
           
EVENT
           
HEARTBEAT
           
JSON
           
MESSAGE
           
NOOP
           
UNKNOWN
           
 
Method Summary
static SocketIOPacketImpl.PacketType fromInt(int val)
           
 int value()
           
static SocketIOPacketImpl.PacketType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SocketIOPacketImpl.PacketType[] 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 SocketIOPacketImpl.PacketType UNKNOWN

DISCONNECT

public static final SocketIOPacketImpl.PacketType DISCONNECT

CONNECT

public static final SocketIOPacketImpl.PacketType CONNECT

HEARTBEAT

public static final SocketIOPacketImpl.PacketType HEARTBEAT

MESSAGE

public static final SocketIOPacketImpl.PacketType MESSAGE

JSON

public static final SocketIOPacketImpl.PacketType JSON

EVENT

public static final SocketIOPacketImpl.PacketType EVENT

ACK

public static final SocketIOPacketImpl.PacketType ACK

ERROR

public static final SocketIOPacketImpl.PacketType ERROR

NOOP

public static final SocketIOPacketImpl.PacketType NOOP
Method Detail

values

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

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

valueOf

public static SocketIOPacketImpl.PacketType 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 SocketIOPacketImpl.PacketType fromInt(int val)


Copyright © 2012. All Rights Reserved.