net.sf.cindy.session
Class AbstractSessionFilterChain

java.lang.Object
  extended by net.sf.cindy.session.AbstractSessionFilterChain
All Implemented Interfaces:
SessionFilterChain

public abstract class AbstractSessionFilterChain
extends java.lang.Object
implements SessionFilterChain

Abstract session filter chain.

Version:
$id$
Author:
Roger Chen

Constructor Summary
AbstractSessionFilterChain()
           
 
Method Summary
 void exceptionCaught(java.lang.Throwable cause)
          Session caught a exception.
protected abstract  SessionFilter nextFilter()
           
 void objectReceived(java.lang.Object obj)
          Session received a object which is decoded by PacketDecoder.
 void objectSent(java.lang.Object obj)
          Session sent a object.
 void packetReceived(Packet packet)
          Session received a packet.
 void packetSend(Packet packet)
          Filter before send packet.
 void packetSent(Packet packet)
          Session sent a packet.
 void sessionClosed()
          Session have closed or refused.
 void sessionStarted()
          Session have established.
 void sessionTimeout()
          Session timeout, but not closed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.cindy.SessionFilterChain
getSession
 

Constructor Detail

AbstractSessionFilterChain

public AbstractSessionFilterChain()
Method Detail

nextFilter

protected abstract SessionFilter nextFilter()

exceptionCaught

public void exceptionCaught(java.lang.Throwable cause)
Description copied from interface: SessionFilterChain
Session caught a exception.

Specified by:
exceptionCaught in interface SessionFilterChain
Parameters:
cause - exception

packetReceived

public void packetReceived(Packet packet)
Description copied from interface: SessionFilterChain
Session received a packet.

Specified by:
packetReceived in interface SessionFilterChain
Parameters:
packet - the received packet

objectReceived

public void objectReceived(java.lang.Object obj)
Description copied from interface: SessionFilterChain
Session received a object which is decoded by PacketDecoder.

Specified by:
objectReceived in interface SessionFilterChain
Parameters:
obj - object

packetSend

public void packetSend(Packet packet)
Description copied from interface: SessionFilterChain
Filter before send packet.

Specified by:
packetSend in interface SessionFilterChain
Parameters:
packet - send packet

packetSent

public void packetSent(Packet packet)
Description copied from interface: SessionFilterChain
Session sent a packet.

Specified by:
packetSent in interface SessionFilterChain
Parameters:
packet - the sent packet

objectSent

public void objectSent(java.lang.Object obj)
Description copied from interface: SessionFilterChain
Session sent a object.

Specified by:
objectSent in interface SessionFilterChain
Parameters:
obj - the sent object

sessionClosed

public void sessionClosed()
Description copied from interface: SessionFilterChain
Session have closed or refused.

Specified by:
sessionClosed in interface SessionFilterChain

sessionStarted

public void sessionStarted()
Description copied from interface: SessionFilterChain
Session have established.

Specified by:
sessionStarted in interface SessionFilterChain

sessionTimeout

public void sessionTimeout()
Description copied from interface: SessionFilterChain
Session timeout, but not closed.

Specified by:
sessionTimeout in interface SessionFilterChain