net.sf.cindy
Interface SessionFilterChain

All Known Implementing Classes:
AbstractSessionFilterChain

public interface SessionFilterChain

Session filter chain, manage session filters.

Version:
$id$
Author:
Roger Chen

Method Summary
 void exceptionCaught(java.lang.Throwable cause)
          Session caught a exception.
 Session getSession()
          Get session associated with the session filter chain.
 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.
 

Method Detail

getSession

Session getSession()
Get session associated with the session filter chain.

Returns:
session

sessionStarted

void sessionStarted()
Session have established.


sessionClosed

void sessionClosed()
Session have closed or refused.


sessionTimeout

void sessionTimeout()
Session timeout, but not closed.


packetReceived

void packetReceived(Packet packet)
Session received a packet.

Parameters:
packet - the received packet

objectReceived

void objectReceived(java.lang.Object obj)
Session received a object which is decoded by PacketDecoder.

Parameters:
obj - object

packetSend

void packetSend(Packet packet)
Filter before send packet.

Parameters:
packet - send packet

packetSent

void packetSent(Packet packet)
Session sent a packet.

Parameters:
packet - the sent packet

objectSent

void objectSent(java.lang.Object obj)
Session sent a object.

Parameters:
obj - the sent object

exceptionCaught

void exceptionCaught(java.lang.Throwable cause)
Session caught a exception.

Parameters:
cause - exception