public class ImageServerIoHandler extends IoHandlerAdapter
IoHandler
Constructor and Description |
---|
ImageServerIoHandler() |
Modifier and Type | Method and Description |
---|---|
void |
exceptionCaught(IoSession session,
Throwable cause)
This method will be called whenever an exception occurs.
|
void |
messageReceived(IoSession session,
Object message)
Handle incoming messages.
|
void |
sessionOpened(IoSession session)
Called when the session is opened, which will come after the session created.
|
inputClosed, messageSent, sessionClosed, sessionCreated, sessionIdle
public static final String INDEX_KEY
public void sessionOpened(IoSession session) throws Exception
sessionOpened
in interface IoHandler
sessionOpened
in class IoHandlerAdapter
Exception
IoHandlerAdapter.sessionOpened(org.apache.mina.core.session.IoSession)
public void exceptionCaught(IoSession session, Throwable cause) throws Exception
exceptionCaught
in interface IoHandler
exceptionCaught
in class IoHandlerAdapter
Exception
IoHandlerAdapter.exceptionCaught(org.apache.mina.core.session.IoSession, java.lang.Throwable)
public void messageReceived(IoSession session, Object message) throws Exception
messageReceived
in interface IoHandler
messageReceived
in class IoHandlerAdapter
Exception
IoHandlerAdapter.messageReceived(org.apache.mina.core.session.IoSession, java.lang.Object)
Copyright © 2004–2014 Apache MINA Project. All rights reserved.