Package | Description |
---|---|
org.apache.mina.handler.demux |
A handler implementation that helps you implement complex protocols
by splitting messageReceived handlers into multiple sub-handlers.
|
Modifier and Type | Field and Description |
---|---|
static MessageHandler<java.lang.Object> |
MessageHandler.NOOP
A
MessageHandler that does nothing. |
Modifier and Type | Method and Description |
---|---|
<E> MessageHandler<? super E> |
DemuxingIoHandler.addReceivedMessageHandler(java.lang.Class<E> type,
MessageHandler<? super E> handler)
Registers a
MessageHandler that handles the received messages of
the specified type . |
<E> MessageHandler<? super E> |
DemuxingIoHandler.addSentMessageHandler(java.lang.Class<E> type,
MessageHandler<? super E> handler)
Registers a
MessageHandler that handles the sent messages of the
specified type . |
protected MessageHandler<java.lang.Object> |
DemuxingIoHandler.findReceivedMessageHandler(java.lang.Class<?> type) |
protected MessageHandler<java.lang.Object> |
DemuxingIoHandler.findSentMessageHandler(java.lang.Class<?> type) |
<E> MessageHandler<? super E> |
DemuxingIoHandler.getMessageHandler(java.lang.Class<E> type)
Returns the
MessageHandler which is registered to process
the specified type . |
<E> MessageHandler<? super E> |
DemuxingIoHandler.removeReceivedMessageHandler(java.lang.Class<E> type)
Deregisters a
MessageHandler that handles the received messages
of the specified type . |
<E> MessageHandler<? super E> |
DemuxingIoHandler.removeSentMessageHandler(java.lang.Class<E> type)
Deregisters a
MessageHandler that handles the sent messages of
the specified type . |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.Class<?>,MessageHandler<?>> |
DemuxingIoHandler.getReceivedMessageHandlerMap()
Returns the
Map which contains all messageType-MessageHandler
pairs registered to this handler for received messages. |
java.util.Map<java.lang.Class<?>,MessageHandler<?>> |
DemuxingIoHandler.getSentMessageHandlerMap()
Returns the
Map which contains all messageType-MessageHandler
pairs registered to this handler for sent messages. |
Modifier and Type | Method and Description |
---|---|
<E> MessageHandler<? super E> |
DemuxingIoHandler.addReceivedMessageHandler(java.lang.Class<E> type,
MessageHandler<? super E> handler)
Registers a
MessageHandler that handles the received messages of
the specified type . |
<E> MessageHandler<? super E> |
DemuxingIoHandler.addSentMessageHandler(java.lang.Class<E> type,
MessageHandler<? super E> handler)
Registers a
MessageHandler that handles the sent messages of the
specified type . |
Copyright © 2004-2019 Apache MINA Project. All Rights Reserved.