net.sf.cindy.filter
Class PacketDecoderFilter

java.lang.Object
  extended by net.sf.cindy.SessionFilterAdapter
      extended by net.sf.cindy.filter.PacketDecoderFilter
All Implemented Interfaces:
SessionFilter

public class PacketDecoderFilter
extends SessionFilterAdapter

Decode Packet to object. Inner filter before SessionHandlerFilter.

Version:
$id$
Author:
Roger Chen

Field Summary
protected  Session session
           
 
Constructor Summary
protected PacketDecoderFilter(Session session)
           
 
Method Summary
static PacketDecoderFilter getInstance(Session session)
           
protected  void recognize(Buffer content, java.net.SocketAddress address)
           
 
Methods inherited from class net.sf.cindy.SessionFilterAdapter
exceptionCaught, objectReceived, objectSent, packetReceived, packetSend, packetSent, sessionClosed, sessionStarted, sessionTimeout
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

session

protected final Session session
Constructor Detail

PacketDecoderFilter

protected PacketDecoderFilter(Session session)
Method Detail

getInstance

public static PacketDecoderFilter getInstance(Session session)

recognize

protected void recognize(Buffer content,
                         java.net.SocketAddress address)
                  throws java.lang.Exception
Throws:
java.lang.Exception