| 程序包 | 说明 |
|---|---|
| org.apache.mina.handler.demux |
A handler implementation that helps you implement complex protocols
by splitting messageReceived handlers into multiple sub-handlers.
|
| 限定符和类型 | 字段和说明 |
|---|---|
static MessageHandler<java.lang.Object> |
MessageHandler.NOOP
A
MessageHandler that does nothing. |
| 限定符和类型 | 方法和说明 |
|---|---|
<E> MessageHandler<? super E> |
DemuxingIoHandler.addMessageHandler(java.lang.Class<E> type,
MessageHandler<? super E> handler)
Registers a
MessageHandler that receives the messages of
the specified type. |
protected MessageHandler<java.lang.Object> |
DemuxingIoHandler.findHandler(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.removeMessageHandler(java.lang.Class<E> type)
Deregisters a
MessageHandler that receives the messages of
the specified type. |
| 限定符和类型 | 方法和说明 |
|---|---|
java.util.Map<java.lang.Class,MessageHandler> |
DemuxingIoHandler.getMessageHandlerMap()
Returns the
Map which contains all messageType-MessageHandler
pairs registered to this handler. |
| 限定符和类型 | 方法和说明 |
|---|---|
<E> MessageHandler<? super E> |
DemuxingIoHandler.addMessageHandler(java.lang.Class<E> type,
MessageHandler<? super E> handler)
Registers a
MessageHandler that receives the messages of
the specified type. |