GeezerVison is showing netty.io — WebSocket00FrameDecoder (Netty API Reference (4.1.141.Final))
Class WebSocket00FrameDecoder
-
-
-
Constructor Summary
Constructors
Constructor
Description
Creates a new instance of WebSocketFrameDecoder with the specified maxFrameSize.
Creates a new instance of WebSocketFrameDecoder with the specified maxFrameSize.
-
Method Summary
Modifier and Type
Method
Description
protected void
Decode the from one ByteBuf to an other.
callDecode, checkpoint, checkpoint, state, state
Modifier and Type
Method
Description
protected void
Called once data should be decoded from the given ByteBuf.
protected void
Stores the internal cumulative buffer's reader position.
protected void
Stores the internal cumulative buffer's reader position and updates
the current decoder state.
Returns the current state of this decoder.
Sets the current state of this decoder.
actualReadableBytes, channelInactive, channelRead, channelReadComplete, decodeLast, discardSomeReadBytes, handlerRemoved, handlerRemoved0, internalBuffer, isSingleDecode, setCumulator, setDiscardAfterReads, setSingleDecode, userEventTriggered
Modifier and Type
Method
Description
protected int
Returns the actual number of readable bytes in the internal cumulative
buffer of this decoder.
void
void
void
protected void
protected final void
final void
Do nothing by default, sub-classes may override this method.
protected void
Gets called after the ByteToMessageDecoder was removed from the actual context and it doesn't handle
events anymore.
Returns the internal cumulative buffer of this decoder.
boolean
void
void
void
void
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
WebSocket00FrameDecoder
public WebSocket00FrameDecoder()
-
WebSocket00FrameDecoder
public WebSocket00FrameDecoder(int maxFrameSize)
Creates a new instance of WebSocketFrameDecoder with the specified maxFrameSize. If the client
sends a frame size larger than maxFrameSize, the channel will be closed.
- Parameters:
maxFrameSize - the maximum frame size to decode
-
WebSocket00FrameDecoder
Creates a new instance of WebSocketFrameDecoder with the specified maxFrameSize. If the client
sends a frame size larger than maxFrameSize, the channel will be closed.
- Parameters:
decoderConfig - Frames decoder configuration.
-
|