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, userEventTriggeredensureNotSharable, handlerAdded, handlerRemoved, isSharableclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandlerAdded, handlerRemovedprivate int fragmentedFramesCount
private Utf8Validator utf8Validator
public void channelRead(ChannelHandlerContext ctx, java.lang.Object msg) throws java.lang.Exception
ChannelInboundHandlerAdapterChannelHandlerContext.fireChannelRead(Object) to forward
to the next ChannelInboundHandler in the ChannelPipeline.
Sub-classes may override this method to change behavior.channelRead in interface ChannelInboundHandlerchannelRead in class ChannelInboundHandlerAdapterjava.lang.Exceptionprivate void checkUTF8String(ChannelHandlerContext ctx, ByteBuf buffer)