public class ReverseProtocolHandler extends IoHandlerAdapter
IoHandler
implementation of reverser server protocol.构造器和说明 |
---|
ReverseProtocolHandler() |
限定符和类型 | 方法和说明 |
---|---|
void |
exceptionCaught(IoSession session,
java.lang.Throwable cause)
Invoked when any exception is thrown by user
IoHandler
implementation or by MINA. |
void |
messageReceived(IoSession session,
java.lang.Object message)
Invoked when a message is received.
|
inputClosed, messageSent, sessionClosed, sessionCreated, sessionIdle, sessionOpened
public void exceptionCaught(IoSession session, java.lang.Throwable cause)
IoHandlerAdapter
IoHandler
implementation or by MINA. If cause
is an instance of
IOException
, MINA will close the connection automatically.exceptionCaught
在接口中 IoHandler
exceptionCaught
在类中 IoHandlerAdapter
session
- The session for which we have got an exceptioncause
- The exception that has been caughtpublic void messageReceived(IoSession session, java.lang.Object message)
IoHandlerAdapter
messageReceived
在接口中 IoHandler
messageReceived
在类中 IoHandlerAdapter
session
- The session that is receiving a messagemessage
- The received message