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 ImageServerIoHandler()
public void sessionOpened(IoSession session) throws Exception
sessionOpened
in interface IoHandler
sessionOpened
in class IoHandlerAdapter
session
- The session being openedException
- If we get an exception while processing the open eventIoHandlerAdapter.sessionOpened(org.apache.mina.core.session.IoSession)
public void exceptionCaught(IoSession session, Throwable cause) throws Exception
exceptionCaught
in interface IoHandler
exceptionCaught
in class IoHandlerAdapter
session
- The session for which we have got an exceptioncause
- The exception that has been caughtException
- If we get an exception while processing the caught exceptionIoHandlerAdapter.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
session
- The session that is receiving a messagemessage
- The received messageException
- If we get an exception while processing the received messageIoHandlerAdapter.messageReceived(org.apache.mina.core.session.IoSession, java.lang.Object)
Copyright © 2004–2016 Apache MINA Project. All rights reserved.