public abstract class MessageToMessageDecoder<I,O> extends ChannelInboundHandlerAdapter implements ChannelInboundMessageHandler<I>
ChannelHandler.Sharable| Constructor and Description |
|---|
MessageToMessageDecoder() |
| Modifier and Type | Method and Description |
|---|---|
abstract O |
decode(ChannelHandlerContext ctx,
I msg) |
void |
inboundBufferUpdated(ChannelHandlerContext ctx) |
boolean |
isDecodable(Object msg)
Returns
true if and only if the specified message can be decoded by this decoder. |
MessageBuf<I> |
newInboundBuffer(ChannelHandlerContext ctx) |
afterAdd, afterRemove, beforeAdd, beforeRemove, channelActive, channelInactive, channelRegistered, channelUnregistered, exceptionCaught, userEventTriggeredclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitchannelActive, channelInactive, channelRegistered, channelUnregisteredafterAdd, afterRemove, beforeAdd, beforeRemove, exceptionCaught, userEventTriggeredpublic MessageBuf<I> newInboundBuffer(ChannelHandlerContext ctx) throws Exception
newInboundBuffer in interface ChannelInboundHandlernewInboundBuffer in interface ChannelInboundMessageHandler<I>Exceptionpublic void inboundBufferUpdated(ChannelHandlerContext ctx) throws Exception
inboundBufferUpdated in interface ChannelStateHandlerinboundBufferUpdated in class ChannelInboundHandlerAdapterExceptionpublic boolean isDecodable(Object msg) throws Exception
true if and only if the specified message can be decoded by this decoder.msg - the messageExceptionpublic abstract O decode(ChannelHandlerContext ctx, I msg) throws Exception
ExceptionCopyright © 2008-2012 The Netty Project. All Rights Reserved.