public final class WebSocketProtocol extends Object
| Modifier and Type | Field and Description |
|---|---|
static byte |
OPCODE_BINARY |
static byte |
OPCODE_CLOSE |
static byte |
OPCODE_CONT |
static byte |
OPCODE_PING |
static byte |
OPCODE_PONG |
static byte |
OPCODE_TEXT |
| Modifier and Type | Method and Description |
|---|---|
static WebSocketFrameDecoder |
frameDecoder(boolean maskPayload,
int maxFramePayloadLength,
boolean expectMaskedFrames,
boolean allowMaskMismatch)
Deprecated.
use
frameDecoder(int, boolean, boolean) instead |
static WebSocketFrameDecoder |
frameDecoder(int maxFramePayloadLength,
boolean expectMaskedFrames,
boolean allowMaskMismatch) |
static WebSocketFrameEncoder |
frameEncoder(boolean expectMaskedFrames) |
static WebSocketFrameEncoder |
frameEncoder(boolean expectMaskedFrames,
IntSupplier externalMask) |
static void |
validateDecoderConfig(int maxFramePayloadLength,
boolean allowExtensions,
boolean withUtf8Validator,
boolean expectMaskedFrames,
boolean allowMaskMismatch) |
static WebSocketDecoderConfig |
validateDecoderConfig(WebSocketDecoderConfig webSocketDecoderConfig) |
public static final byte OPCODE_CONT
public static final byte OPCODE_TEXT
public static final byte OPCODE_BINARY
public static final byte OPCODE_CLOSE
public static final byte OPCODE_PING
public static final byte OPCODE_PONG
public static void validateDecoderConfig(int maxFramePayloadLength,
boolean allowExtensions,
boolean withUtf8Validator,
boolean expectMaskedFrames,
boolean allowMaskMismatch)
public static WebSocketDecoderConfig validateDecoderConfig(WebSocketDecoderConfig webSocketDecoderConfig)
public static WebSocketFrameDecoder frameDecoder(int maxFramePayloadLength, boolean expectMaskedFrames, boolean allowMaskMismatch)
@Deprecated public static WebSocketFrameDecoder frameDecoder(boolean maskPayload, int maxFramePayloadLength, boolean expectMaskedFrames, boolean allowMaskMismatch)
frameDecoder(int, boolean, boolean) insteadpublic static WebSocketFrameEncoder frameEncoder(boolean expectMaskedFrames, IntSupplier externalMask)
public static WebSocketFrameEncoder frameEncoder(boolean expectMaskedFrames)