org.apache.mina.protocol.handler
Interface MessageHandler
public interface MessageHandler
A handler interface that DemuxingProtocolHandler forwards
messageReceived events to. You have to register your
handler with the type of message you want to get notified using
DemuxingProtocolHandler.addMessageHandler(Class, MessageHandler).
- Version:
- $Rev: 325850 $, $Date: 2005-10-17 09:07:19 +0200 (Mon, 17 Oct 2005) $
- Author:
- The Apache Directory Project
|
Method Summary |
void |
messageReceived(ProtocolSession session,
java.lang.Object message)
Invoked when the specific type of message is received from the
specified session. |
NOOP
static final MessageHandler NOOP
- A
MessageHandler that does nothing. This is usefule when
you want to ignore messages of the specific type silently.
messageReceived
void messageReceived(ProtocolSession session,
java.lang.Object message)
- Invoked when the specific type of message is received from the
specified
session.