net.sf.cindy.filter
Class SessionHandlerFilter

java.lang.Object
  extended by net.sf.cindy.filter.NullFilter
      extended by net.sf.cindy.filter.SessionHandlerFilter
All Implemented Interfaces:
SessionFilter

public class SessionHandlerFilter
extends NullFilter

SessionHandler filter. The last inner filter.

Version:
$id$
Author:
Roger Chen

Constructor Summary
SessionHandlerFilter()
           
 
Method Summary
 void exceptionCaught(SessionFilterChain filterChain, java.lang.Throwable cause)
          Session caught a exception.
 void objectReceived(SessionFilterChain filterChain, java.lang.Object obj)
          Session received a object which is decoded by PacketDecoder.
 void objectSent(SessionFilterChain filterChain, java.lang.Object obj)
          Session sent a object.
 void sessionClosed(SessionFilterChain filterChain)
          Session have closed.
 void sessionStarted(SessionFilterChain filterChain)
          Session have started.
 void sessionTimeout(SessionFilterChain filterChain)
          Session timeout, but not closed.
 
Methods inherited from class net.sf.cindy.filter.NullFilter
packetReceived, packetSend, packetSent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionHandlerFilter

public SessionHandlerFilter()
Method Detail

exceptionCaught

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

Specified by:
exceptionCaught in interface SessionFilter
Overrides:
exceptionCaught in class NullFilter
Parameters:
filterChain - session filter chain
cause - exception

objectReceived

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

Specified by:
objectReceived in interface SessionFilter
Overrides:
objectReceived in class NullFilter
Parameters:
filterChain - session filter chain
obj - object
Throws:
java.lang.Exception - any exception

objectSent

public void objectSent(SessionFilterChain filterChain,
                       java.lang.Object obj)
                throws java.lang.Exception
Description copied from interface: SessionFilter
Session sent a object. This event will be dispatched in the reversed order.

Specified by:
objectSent in interface SessionFilter
Overrides:
objectSent in class NullFilter
Parameters:
filterChain - session filter chain
obj - the sent object
Throws:
java.lang.Exception - any exception

sessionClosed

public void sessionClosed(SessionFilterChain filterChain)
                   throws java.lang.Exception
Description copied from interface: SessionFilter
Session have closed.

Specified by:
sessionClosed in interface SessionFilter
Overrides:
sessionClosed in class NullFilter
Parameters:
filterChain - session filter chain
Throws:
java.lang.Exception - any exception

sessionStarted

public void sessionStarted(SessionFilterChain filterChain)
                    throws java.lang.Exception
Description copied from interface: SessionFilter
Session have started.

Specified by:
sessionStarted in interface SessionFilter
Overrides:
sessionStarted in class NullFilter
Parameters:
filterChain - session filter chain
Throws:
java.lang.Exception - any exception

sessionTimeout

public void sessionTimeout(SessionFilterChain filterChain)
                    throws java.lang.Exception
Description copied from interface: SessionFilter
Session timeout, but not closed.

Specified by:
sessionTimeout in interface SessionFilter
Overrides:
sessionTimeout in class NullFilter
Parameters:
filterChain - session filter chain
Throws:
java.lang.Exception - any exception