public interface WebSocketFrameFactory
| Modifier and Type | Interface and Description |
|---|---|
static interface |
WebSocketFrameFactory.BulkEncoder
Encodes prefixes of multiple data websocket frames into provided bytebuffer.
|
static interface |
WebSocketFrameFactory.Encoder
Encodes prefix of single data websocket frame into provided bytebuffer.
|
| Modifier and Type | Method and Description |
|---|---|
default WebSocketFrameFactory.BulkEncoder |
bulkEncoder() |
default ByteBuf |
createBinaryFragmentStart(ByteBufAllocator allocator,
int binaryDataSize) |
ByteBuf |
createBinaryFrame(ByteBufAllocator allocator,
int binaryDataSize) |
ByteBuf |
createCloseFrame(ByteBufAllocator allocator,
int statusCode,
String reason) |
default ByteBuf |
createContinuationFragment(ByteBufAllocator allocator,
int dataSize) |
default ByteBuf |
createContinuationFragmentEnd(ByteBufAllocator allocator,
int dataSize) |
ByteBuf |
createPingFrame(ByteBufAllocator allocator,
int binaryDataSize) |
ByteBuf |
createPongFrame(ByteBufAllocator allocator,
int binaryDataSize) |
default ByteBuf |
createTextFragmentStart(ByteBufAllocator allocator,
int textDataSize) |
default ByteBuf |
createTextFrame(ByteBufAllocator allocator,
int textDataSize) |
WebSocketFrameFactory.Encoder |
encoder() |
ByteBuf |
mask(ByteBuf frame) |
ByteBuf createBinaryFrame(ByteBufAllocator allocator, int binaryDataSize)
default ByteBuf createTextFrame(ByteBufAllocator allocator, int textDataSize)
default ByteBuf createBinaryFragmentStart(ByteBufAllocator allocator, int binaryDataSize)
default ByteBuf createTextFragmentStart(ByteBufAllocator allocator, int textDataSize)
default ByteBuf createContinuationFragment(ByteBufAllocator allocator, int dataSize)
default ByteBuf createContinuationFragmentEnd(ByteBufAllocator allocator, int dataSize)
ByteBuf createCloseFrame(ByteBufAllocator allocator, int statusCode, String reason)
ByteBuf createPingFrame(ByteBufAllocator allocator, int binaryDataSize)
ByteBuf createPongFrame(ByteBufAllocator allocator, int binaryDataSize)
WebSocketFrameFactory.Encoder encoder()
default WebSocketFrameFactory.BulkEncoder bulkEncoder()