org.apache.mina.example.imagine.step1.server
Class ImageServerIoHandler
java.lang.Object
org.apache.mina.core.service.IoHandlerAdapter
org.apache.mina.example.imagine.step1.server.ImageServerIoHandler
- All Implemented Interfaces:
- IoHandler
public class ImageServerIoHandler
- extends IoHandlerAdapter
server-side IoHandler
- Author:
- Apache MINA Project
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INDEX_KEY
public static final String INDEX_KEY
ImageServerIoHandler
public ImageServerIoHandler()
sessionOpened
public void sessionOpened(IoSession session)
throws Exception
- Called when the session is opened, which will come after the session created.
- Specified by:
sessionOpened
in interface IoHandler
- Overrides:
sessionOpened
in class IoHandlerAdapter
- Throws:
Exception
- See Also:
IoHandlerAdapter.sessionOpened(org.apache.mina.core.session.IoSession)
exceptionCaught
public void exceptionCaught(IoSession session,
Throwable cause)
throws Exception
- This method will be called whenever an exception occurs. For this handler,
the logger will generate a warning message.
- Specified by:
exceptionCaught
in interface IoHandler
- Overrides:
exceptionCaught
in class IoHandlerAdapter
- Throws:
Exception
- See Also:
IoHandlerAdapter.exceptionCaught(org.apache.mina.core.session.IoSession, java.lang.Throwable)
messageReceived
public void messageReceived(IoSession session,
Object message)
throws Exception
- Handle incoming messages.
- Specified by:
messageReceived
in interface IoHandler
- Overrides:
messageReceived
in class IoHandlerAdapter
- Throws:
Exception
- See Also:
IoHandlerAdapter.messageReceived(org.apache.mina.core.session.IoSession, java.lang.Object)
Copyright © 2004-2011 Apache MINA Project. All Rights Reserved.