Top Fields Constructors Methods
io.netty.handler.codec.http.websocketx

public Class Utf8FrameValidator

extends ChannelInboundHandlerAdapter
Class Inheritance
Imports
io.netty.buffer.ByteBuf, io.netty.channel.ChannelFutureListener, .ChannelHandlerContext, .ChannelInboundHandlerAdapter

Field Summary

Modifier and TypeField and Description
private final boolean
private int
private Utf8Validator

Constructor Summary

AccessConstructor and Description
public
public
Utf8FrameValidator(boolean closeOnProtocolViolation)

Method Summary

Modifier and TypeMethod and Description
public void
private void
public void
private void
Inherited from io.netty.channel.ChannelInboundHandlerAdapter:
channelActivechannelInactivechannelReadCompletechannelRegisteredchannelUnregisteredchannelWritabilityChangeduserEventTriggered

Field Detail

closeOnProtocolViolationback to summary
private final boolean closeOnProtocolViolation
fragmentedFramesCountback to summary
private int fragmentedFramesCount
utf8Validatorback to summary
private Utf8Validator utf8Validator

Constructor Detail

Utf8FrameValidatorback to summary
public Utf8FrameValidator()
Utf8FrameValidatorback to summary
public Utf8FrameValidator(boolean closeOnProtocolViolation)

Method Detail

channelReadback to summary
public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception

Overrides io.netty.channel.ChannelInboundHandlerAdapter.channelRead.

Implements io.netty.channel.ChannelInboundHandler.channelRead.

Doc from io.netty.channel.ChannelInboundHandlerAdapter.channelRead.

Calls ChannelHandlerContext#fireChannelRead(Object) to forward to the next ChannelInboundHandler in the ChannelPipeline. Sub-classes may override this method to change behavior.

Annotations
@Override
checkUTF8Stringback to summary
private void checkUTF8String(ByteBuf buffer)
exceptionCaughtback to summary
public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception

Overrides io.netty.channel.ChannelInboundHandlerAdapter.exceptionCaught.

Implements io.netty.channel.ChannelInboundHandler.exceptionCaught, io.netty.channel.ChannelHandler.exceptionCaught.

Doc from io.netty.channel.ChannelInboundHandlerAdapter.exceptionCaught.

Calls ChannelHandlerContext#fireExceptionCaught(Throwable) to forward to the next ChannelHandler in the ChannelPipeline. Sub-classes may override this method to change behavior.

Annotations
@Override
protocolViolationback to summary
private void protocolViolation(ChannelHandlerContext ctx, WebSocketFrame frame, CorruptedWebSocketFrameException ex)