com.glines.socketio.server
Class SocketIOFrame

java.lang.Object
  extended by com.glines.socketio.server.SocketIOFrame

public class SocketIOFrame
extends Object


Nested Class Summary
static class SocketIOFrame.FrameType
           
 
Field Summary
static int JSON_MESSAGE_TYPE
           
static char SEPERATOR_CHAR
           
static int TEXT_MESSAGE_TYPE
           
 
Constructor Summary
SocketIOFrame(SocketIOFrame.FrameType frameType, int messageType, String data)
           
 
Method Summary
 String encode()
           
static String encode(SocketIOFrame.FrameType type, int messageType, String data)
           
 String getData()
           
 SocketIOFrame.FrameType getFrameType()
           
 int getMessageType()
           
static List<SocketIOFrame> parse(String data)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SEPERATOR_CHAR

public static final char SEPERATOR_CHAR
See Also:
Constant Field Values

TEXT_MESSAGE_TYPE

public static final int TEXT_MESSAGE_TYPE
See Also:
Constant Field Values

JSON_MESSAGE_TYPE

public static final int JSON_MESSAGE_TYPE
See Also:
Constant Field Values
Constructor Detail

SocketIOFrame

public SocketIOFrame(SocketIOFrame.FrameType frameType,
                     int messageType,
                     String data)
Method Detail

parse

public static List<SocketIOFrame> parse(String data)

encode

public static String encode(SocketIOFrame.FrameType type,
                            int messageType,
                            String data)

getFrameType

public SocketIOFrame.FrameType getFrameType()

getMessageType

public int getMessageType()

getData

public String getData()

encode

public String encode()


Copyright © 2010-2011. All Rights Reserved.