pl.bristleback.server.bristle.utils
Class PacketProcessingUtil

java.lang.Object
  extended by pl.bristleback.server.bristle.utils.PacketProcessingUtil

public final class PacketProcessingUtil
extends java.lang.Object

Util for packet and token processing taken from original jwebsocket framework grouped in one class.

Created on: 2010-09-24 22:40:39

Author:
Wojciech Niemiec

Method Summary
static org.jwebsocket.token.Token processPacketToToken(org.jwebsocket.api.WebSocketPacket packet, java.lang.String protocol)
           
static org.jwebsocket.api.WebSocketPacket processTokenToPacket(org.jwebsocket.token.Token token)
          Process token to packet using protocol defined in jwebsocket configuration file.
static org.jwebsocket.api.WebSocketPacket processTokenToPacket(org.jwebsocket.token.Token token, java.lang.String protocol)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

processPacketToToken

public static org.jwebsocket.token.Token processPacketToToken(org.jwebsocket.api.WebSocketPacket packet,
                                                              java.lang.String protocol)

processTokenToPacket

public static org.jwebsocket.api.WebSocketPacket processTokenToPacket(org.jwebsocket.token.Token token,
                                                                      java.lang.String protocol)

processTokenToPacket

public static org.jwebsocket.api.WebSocketPacket processTokenToPacket(org.jwebsocket.token.Token token)
Process token to packet using protocol defined in jwebsocket configuration file.

Parameters:
token - token
Returns:
packet representation of token


Copyright © 2011. All Rights Reserved.