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

public Class Utf8FrameValidator

extends Object
implements ChannelHandler
Class Inheritance
All Implemented Interfaces
io.netty5.channel.ChannelHandler
Imports
io.netty5.buffer.Buffer, io.netty5.channel.ChannelFutureListeners, .ChannelHandler, .ChannelHandlerContext

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
channelRead(ChannelHandlerContext ctx, Object msg)

Overrides default io.netty5.channel.ChannelHandler.channelRead.

Invoked when the current Channel has read a message from the peer.
private void
private void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

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 default io.netty5.channel.ChannelHandler.channelRead.

Doc from io.netty5.channel.ChannelHandler.channelRead.

Invoked when the current Channel has read a message from the peer.

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