public class ReverseProtocolHandler extends IoHandlerAdapter
IoHandler
implementation of reverser server protocol.Constructor and Description |
---|
ReverseProtocolHandler() |
Modifier and Type | Method and Description |
---|---|
void |
exceptionCaught(IoSession session,
Throwable cause)
Invoked when any exception is thrown by user
IoHandler
implementation or by MINA. |
void |
messageReceived(IoSession session,
Object message)
Invoked when a message is received.
|
inputClosed, messageSent, sessionClosed, sessionCreated, sessionIdle, sessionOpened
public void exceptionCaught(IoSession session, Throwable cause)
IoHandler
IoHandler
implementation or by MINA. If cause
is an instance of
IOException
, MINA will close the connection automatically.exceptionCaught
in interface IoHandler
exceptionCaught
in class IoHandlerAdapter
public void messageReceived(IoSession session, Object message)
IoHandler
messageReceived
in interface IoHandler
messageReceived
in class IoHandlerAdapter
Copyright © 2004–2014 Apache MINA Project. All rights reserved.