| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectorg.apache.mina.common.IoHandlerAdapterorg.apache.mina.handler.chain.ChainedIoHandlerpublic class ChainedIoHandlerextends IoHandlerAdapterIoHandler which executes an IoHandlerChain
on a messageReceived event.
Constructor Summary | |
| |
| |
Method Summary | |
IoHandlerChain |
|
void |
|
Methods inherited from class org.apache.mina.common.IoHandlerAdapter | |
exceptionCaught, messageReceived, messageSent, sessionClosed, sessionCreated, sessionIdle, sessionOpened | |
public ChainedIoHandler()
Creates a new instance which contains an emptyIoHandlerChain.
public ChainedIoHandler(IoHandlerChain chain)
Creates a new instance which executes the specifiedIoHandlerChainon a messageReceived event.
- Parameters:
chain- anIoHandlerChainto execute
public IoHandlerChain getChain()
Returns theIoHandlerCommandthis handler will use to handle messageReceived events.
public void messageReceived(IoSession session, Object message) throws Exception
Handles the specified messageReceived event with theIoHandlerCommandorIoHandlerChainyou specified in the constructor.
- Specified by:
- messageReceived in interface IoHandler
- Overrides:
- messageReceived in interface IoHandlerAdapter