| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| 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 ByteBuf | |
| protected void | encode(ChannelHandlerContext
the ctx, WebSocketFrame ChannelHandlerContext which this MessageToMessageEncoder belongs tothe message to encode to an other one msg, List<Object> the out)List into which the encoded msg should be added
needs to do some kind of aggregationImplements abstract io. |
| protected WebSocketExtensionFilter | |
| public void | handlerRemoved(ChannelHandlerContext ctx)
Overrides io. Implements 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 | |
| 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 ByteBuf compressContent(ChannelHandlerContext ctx, WebSocketFrame msg) | |
| encode | back to summary |
|---|---|
| protected void encode(ChannelHandlerContext ctx, WebSocketFrame msg, List<Object> out) throws Exception Implements abstract io. Doc from io. Encode from one message to an other. This method will be called for each written message that can be handled by this encoder.
| |
| extensionEncoderFilter | back to summary |
|---|---|
| protected WebSocketExtensionFilter extensionEncoderFilter() Returns the extension encoder filter. | |
| handlerRemoved | back to summary |
|---|---|
| public void handlerRemoved(ChannelHandlerContext ctx) throws Exception Overrides io. Implements 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)
| |