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.
|
messageSent, sessionClosed, sessionCreated, sessionIdle, sessionOpened
public void exceptionCaught(IoSession session, java.lang.Throwable cause)
IoHandler
IoHandler
implementation or by MINA. If cause
is instanceof
IOException
, MINA will close the connection automatically.exceptionCaught
在接口中 IoHandler
exceptionCaught
在类中 IoHandlerAdapter
public void messageReceived(IoSession session, java.lang.Object message)
IoHandler
messageReceived
在接口中 IoHandler
messageReceived
在类中 IoHandlerAdapter