net.sf.cindy
Class SessionHandlerAdapter

java.lang.Object
  extended by net.sf.cindy.SessionHandlerAdapter
All Implemented Interfaces:
SessionHandler

public class SessionHandlerAdapter
extends java.lang.Object
implements SessionHandler

SessionHandler adapter.

Version:
$id$
Author:
Roger Chen

Constructor Summary
SessionHandlerAdapter()
           
 
Method Summary
 void exceptionCaught(Session session, java.lang.Throwable cause)
          Session caught a exception.
 void objectReceived(Session session, java.lang.Object obj)
          Session received a object which is decoded by PacketDecoder.
 void objectSent(Session session, java.lang.Object obj)
          Session sent a object.
 void sessionClosed(Session session)
          Session have closed.
 void sessionStarted(Session session)
          Session have started.
 void sessionTimeout(Session session)
          Session timeout, but not closed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionHandlerAdapter

public SessionHandlerAdapter()
Method Detail

sessionClosed

public void sessionClosed(Session session)
                   throws java.lang.Exception
Description copied from interface: SessionHandler
Session have closed.

Specified by:
sessionClosed in interface SessionHandler
Parameters:
session - session
Throws:
java.lang.Exception - any exception

sessionStarted

public void sessionStarted(Session session)
                    throws java.lang.Exception
Description copied from interface: SessionHandler
Session have started.

Specified by:
sessionStarted in interface SessionHandler
Parameters:
session - session
Throws:
java.lang.Exception - any exception

sessionTimeout

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

Specified by:
sessionTimeout in interface SessionHandler
Parameters:
session - session
Throws:
java.lang.Exception - any exception

objectReceived

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

Specified by:
objectReceived in interface SessionHandler
Parameters:
session - session
obj - object
Throws:
java.lang.Exception - any exception

objectSent

public void objectSent(Session session,
                       java.lang.Object obj)
                throws java.lang.Exception
Description copied from interface: SessionHandler
Session sent a object.

Specified by:
objectSent in interface SessionHandler
Parameters:
session - session
obj - object
Throws:
java.lang.Exception - any exception

exceptionCaught

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

Specified by:
exceptionCaught in interface SessionHandler
Parameters:
session - session
cause - exception