public class Utf8FrameValidator extends ChannelInboundHandlerAdapter
ChannelHandler.Sharable
Modifier and Type | Field and Description |
---|---|
private int |
fragmentedFramesCount |
private Utf8Validator |
utf8Validator |
Constructor and Description |
---|
Utf8FrameValidator() |
Modifier and Type | Method and Description |
---|---|
void |
channelRead(ChannelHandlerContext ctx,
java.lang.Object msg)
Calls
ChannelHandlerContext.fireChannelRead(Object) to forward
to the next ChannelInboundHandler in the ChannelPipeline . |
private void |
checkUTF8String(ChannelHandlerContext ctx,
ByteBuf buffer) |
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
handlerAdded, handlerRemoved
private int fragmentedFramesCount
private Utf8Validator utf8Validator
public void channelRead(ChannelHandlerContext ctx, java.lang.Object msg) throws java.lang.Exception
ChannelInboundHandlerAdapter
ChannelHandlerContext.fireChannelRead(Object)
to forward
to the next ChannelInboundHandler
in the ChannelPipeline
.
Sub-classes may override this method to change behavior.channelRead
in interface ChannelInboundHandler
channelRead
in class ChannelInboundHandlerAdapter
java.lang.Exception
private void checkUTF8String(ChannelHandlerContext ctx, ByteBuf buffer)