|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.mina.core.service.IoHandlerAdapter
org.apache.mina.handler.chain.ChainedIoHandler
public class ChainedIoHandler
An IoHandler
which executes an IoHandlerChain
on a messageReceived event.
Constructor Summary | |
---|---|
ChainedIoHandler()
Creates a new instance which contains an empty IoHandlerChain . |
|
ChainedIoHandler(IoHandlerChain chain)
Creates a new instance which executes the specified IoHandlerChain on a messageReceived event. |
Method Summary | |
---|---|
IoHandlerChain |
getChain()
Returns the IoHandlerCommand this handler will use to
handle messageReceived events. |
void |
messageReceived(IoSession session,
Object message)
Handles the specified messageReceived event with the IoHandlerCommand or IoHandlerChain you specified
in the constructor. |
Methods inherited from class org.apache.mina.core.service.IoHandlerAdapter |
---|
exceptionCaught, messageSent, sessionClosed, sessionCreated, sessionIdle, sessionOpened |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChainedIoHandler()
IoHandlerChain
.
public ChainedIoHandler(IoHandlerChain chain)
IoHandlerChain
on a messageReceived event.
chain
- an IoHandlerChain
to executeMethod Detail |
---|
public IoHandlerChain getChain()
IoHandlerCommand
this handler will use to
handle messageReceived events.
public void messageReceived(IoSession session, Object message) throws Exception
IoHandlerCommand
or IoHandlerChain
you specified
in the constructor.
messageReceived
in interface IoHandler
messageReceived
in class IoHandlerAdapter
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |