| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| pack-priv static final Supplier | |
| private EmbeddedChannel | |
| private final WebSocketExtensionFilter | |
| private final boolean | |
| private final int |
| Access | Constructor and Description |
|---|---|
| pack-priv | DeflateEncoder(int
compression level of the compressor. compressionLevel, int maximum size of the window compressor buffer. windowSize, boolean true to disable context takeover. noContext, WebSocketExtensionFilter extension encoder filter. extensionEncoderFilter)Constructor |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private Buffer | |
| protected void | encodeAndClose(ChannelHandlerContext
the ctx, WebSocketFrame ChannelHandlerContext which this MessageToMessageEncoder belongs to.the message to encode to another one. msg, List<Object> the out)List into which produced output messages should be added.Overrides io. |
| protected WebSocketExtensionFilter | |
| public void | handlerRemoved(ChannelHandlerContext ctx)
Overrides default io. ChannelHandler was removed from the actual context and it doesn't handle events
anymore.
|
| protected abstract boolean | Returns: true if compressed payload tail needs to be removed.the current frame. msg)
|
| protected abstract int |
| compressionLevel | back to summary |
|---|---|
| private final int compressionLevel | |
| EMPTY_DEFLATE_BLOCK | back to summary |
|---|---|
| pack-priv static final Supplier<Buffer> EMPTY_DEFLATE_BLOCK | |
| encoder | back to summary |
|---|---|
| private EmbeddedChannel encoder | |
| extensionEncoderFilter | back to summary |
|---|---|
| private final WebSocketExtensionFilter extensionEncoderFilter | |
| noContext | back to summary |
|---|---|
| private final boolean noContext | |
| windowSize | back to summary |
|---|---|
| private final int windowSize | |
| DeflateEncoder | back to summary |
|---|---|
| pack-priv DeflateEncoder(int compressionLevel, int windowSize, boolean noContext, WebSocketExtensionFilter extensionEncoderFilter) Constructor
| |
| cleanup | back to summary |
|---|---|
| private void cleanup() | |
| compressContent | back to summary |
|---|---|
| private Buffer compressContent(ChannelHandlerContext ctx, WebSocketFrame msg) | |
| encodeAndClose | back to summary |
|---|---|
| protected void encodeAndClose(ChannelHandlerContext ctx, WebSocketFrame msg, List<Object> out) throws Exception Overrides io. Doc from io. Encode from one message to another. This method will be called for each written message that can be handled by this encoder. The message will not be automatically disposed of after this call. Instead, the responsibility of ensuring that messages are disposed of falls upon the implementor of this method.
Subclasses that wish to have incoming messages automatically disposed of should instead override the
| |
| extensionEncoderFilter | back to summary |
|---|---|
| protected WebSocketExtensionFilter extensionEncoderFilter() Returns the extension encoder filter. | |
| handlerRemoved | back to summary |
|---|---|
| public void handlerRemoved(ChannelHandlerContext ctx) throws Exception Overrides default io. Doc from io. Gets called after the
| |
| removeFrameTail | back to summary |
|---|---|
protected abstract boolean removeFrameTail(WebSocketFrame msg)
| |
| rsv | back to summary |
|---|---|
protected abstract int rsv(WebSocketFrame msg)
| |