public abstract class MessageInboundDecoder extends MessageInboundHandler
Abstract MessageInboundDecoder class.
Constructor and Description |
---|
MessageInboundDecoder() |
Modifier and Type | Method and Description |
---|---|
protected abstract boolean |
acceptMessage(AbstractRequest request,
Object msg)
acceptMessage.
|
protected void |
afterDecode(io.netty.channel.ChannelHandlerContext ctx)
afterDecode.
|
protected void |
beforeDecode(io.netty.channel.ChannelHandlerContext ctx)
beforeDecode.
|
protected abstract Object |
decodeMessage(io.netty.channel.ChannelHandlerContext ctx,
AbstractRequest request,
Object msg)
decodeMessage.
|
protected boolean |
isSuppressLog()
isSuppressLog.
|
void |
readMessage(io.netty.channel.ChannelHandlerContext ctx,
Object msg)
readMessage.
|
protected void |
setSuppressLog(boolean suppressLog)
Setter for the field
suppressLog . |
channelRead, debug, debug, debug, debug, error, error, handlerAdded, handlerRemoved, info, isDebugEnabled, log, log, printField, trace, warn
public final void readMessage(io.netty.channel.ChannelHandlerContext ctx, Object msg) throws Exception
readMessage.
readMessage
in class MessageInboundHandler
ctx
- a ChannelHandlerContext
objectmsg
- a Object
objectException
- if any.protected void beforeDecode(io.netty.channel.ChannelHandlerContext ctx)
beforeDecode.
ctx
- a ChannelHandlerContext
objectprotected abstract boolean acceptMessage(AbstractRequest request, Object msg)
acceptMessage.
request
- a AbstractRequest
objectmsg
- a Object
objectprotected abstract Object decodeMessage(io.netty.channel.ChannelHandlerContext ctx, AbstractRequest request, Object msg) throws Exception
decodeMessage.
ctx
- a ChannelHandlerContext
objectrequest
- a AbstractRequest
objectmsg
- a Object
objectObject
objectException
- if any.protected void afterDecode(io.netty.channel.ChannelHandlerContext ctx)
afterDecode.
ctx
- a ChannelHandlerContext
objectprotected boolean isSuppressLog()
isSuppressLog.
protected void setSuppressLog(boolean suppressLog)
Setter for the field suppressLog
.
suppressLog
- a booleanCopyright © 2016–2024. All rights reserved.