| Modifier and Type | Class and Description |
|---|---|
| pack-priv static enum |
| Modifier and Type | Field and Description |
|---|---|
| private final WebSocketDecoderConfig | |
| private int | |
| private boolean | |
| private boolean | |
| private int | |
| private int | |
| private long | |
| private int | |
| private static final InternalLogger | |
| private byte[] | |
| private static final byte | |
| private static final byte | |
| private static final byte | |
| private static final byte | |
| private static final byte | |
| private static final byte | |
| private boolean | |
| private WebSocket13FrameDecoder. |
| Access | Constructor and Description |
|---|---|
| public | WebSocket13FrameDecoder(boolean
Web socket servers must set this to true processed incoming masked payload. Client implementations
must set this to false. expectMaskedFrames, boolean Flag to allow reserved extension bits to be used or not allowExtensions, int Maximum length of a frame's payload. Setting this to an appropriate value for you application
helps check for denial of services attacks. maxFramePayloadLength)Constructor |
| public | WebSocket13FrameDecoder(boolean
Web socket servers must set this to true processed incoming masked payload. Client implementations
must set this to false. expectMaskedFrames, boolean Flag to allow reserved extension bits to be used or not allowExtensions, int Maximum length of a frame's payload. Setting this to an appropriate value for you application
helps check for denial of services attacks. maxFramePayloadLength, boolean When set to true, frames which are not masked properly according to the standard will still be
accepted. allowMaskMismatch)Constructor |
| public | WebSocket13FrameDecoder(WebSocketDecoderConfig
Frames decoder configuration. decoderConfig)Constructor |
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| protected void | decode(ChannelHandlerContext
the ctx, Buffer ChannelHandlerContext which this ByteToMessageDecoder belongs tothe in)Buffer from which to read dataImplements abstract io. Buffer to another.
|
| private void | |
| private void | |
| private void | |
| private static int | |
| private void |
| config | back to summary |
|---|---|
| private final WebSocketDecoderConfig config | |
| fragmentedFramesCount | back to summary |
|---|---|
| private int fragmentedFramesCount | |
| frameFinalFlag | back to summary |
|---|---|
| private boolean frameFinalFlag | |
| frameMasked | back to summary |
|---|---|
| private boolean frameMasked | |
| frameOpcode | back to summary |
|---|---|
| private int frameOpcode | |
| framePayloadLen1 | back to summary |
|---|---|
| private int framePayloadLen1 | |
| framePayloadLength | back to summary |
|---|---|
| private long framePayloadLength | |
| frameRsv | back to summary |
|---|---|
| private int frameRsv | |
| logger | back to summary |
|---|---|
| private static final InternalLogger logger | |
| maskingKey | back to summary |
|---|---|
| private byte[] maskingKey | |
| OPCODE_BINARY | back to summary |
|---|---|
| private static final byte OPCODE_BINARY | |
| OPCODE_CLOSE | back to summary |
|---|---|
| private static final byte OPCODE_CLOSE | |
| OPCODE_CONT | back to summary |
|---|---|
| private static final byte OPCODE_CONT | |
| OPCODE_PING | back to summary |
|---|---|
| private static final byte OPCODE_PING | |
| OPCODE_PONG | back to summary |
|---|---|
| private static final byte OPCODE_PONG | |
| OPCODE_TEXT | back to summary |
|---|---|
| private static final byte OPCODE_TEXT | |
| receivedClosingHandshake | back to summary |
|---|---|
| private boolean receivedClosingHandshake | |
| state | back to summary |
|---|---|
| private WebSocket13FrameDecoder. | |
| WebSocket13FrameDecoder | back to summary |
|---|---|
| public WebSocket13FrameDecoder(boolean expectMaskedFrames, boolean allowExtensions, int maxFramePayloadLength) Constructor
| |
| WebSocket13FrameDecoder | back to summary |
|---|---|
| public WebSocket13FrameDecoder(boolean expectMaskedFrames, boolean allowExtensions, int maxFramePayloadLength, boolean allowMaskMismatch) Constructor
| |
| WebSocket13FrameDecoder | back to summary |
|---|---|
| public WebSocket13FrameDecoder(WebSocketDecoderConfig decoderConfig) Constructor
| |
| checkCloseFrameBody | back to summary |
|---|---|
| protected void checkCloseFrameBody(ChannelHandlerContext ctx, Buffer buffer) | |
| decode | back to summary |
|---|---|
| protected void decode(ChannelHandlerContext ctx, Buffer in) throws Exception Implements abstract io. Doc from io. Decode the from one
| |
| protocolViolation | back to summary |
|---|---|
| private void protocolViolation(ChannelHandlerContext ctx, Buffer in, String reason) | |
| protocolViolation | back to summary |
|---|---|
| private void protocolViolation(ChannelHandlerContext ctx, Buffer in, WebSocketCloseStatus status, String reason) | |
| protocolViolation | back to summary |
|---|---|
| private void protocolViolation(ChannelHandlerContext ctx, Buffer in, CorruptedWebSocketFrameException ex) | |
| toFrameLength | back to summary |
|---|---|
| private static int toFrameLength(long length) | |
| unmask | back to summary |
|---|---|
| private void unmask(Buffer frame) | |
| Modifier and Type | Field and Description |
|---|---|
| public static final WebSocket13FrameDecoder. | |
| public static final WebSocket13FrameDecoder. | |
| public static final WebSocket13FrameDecoder. | |
| public static final WebSocket13FrameDecoder. | |
| public static final WebSocket13FrameDecoder. | |
| public static final WebSocket13FrameDecoder. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static WebSocket13FrameDecoder. | |
| public static WebSocket13FrameDecoder. |
| CORRUPT | back to summary |
|---|---|
| public static final WebSocket13FrameDecoder. | |
| MASKING_KEY | back to summary |
|---|---|
| public static final WebSocket13FrameDecoder. | |
| PAYLOAD | back to summary |
|---|---|
| public static final WebSocket13FrameDecoder. | |
| READING_FIRST | back to summary |
|---|---|
| public static final WebSocket13FrameDecoder. | |
| READING_SECOND | back to summary |
|---|---|
| public static final WebSocket13FrameDecoder. | |
| READING_SIZE | back to summary |
|---|---|
| public static final WebSocket13FrameDecoder. | |
| State | back to summary |
|---|---|
| private State() | |
| valueOf | back to summary |
|---|---|
| public static WebSocket13FrameDecoder. | |
| values | back to summary |
|---|---|
| public static WebSocket13FrameDecoder. | |