| Modifier and Type | Field and Description |
|---|---|
| private boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv | PerMessageDeflateEncoder(int
compression level of the compressor. compressionLevel, int maximum size of the window compressor buffer. windowSize, boolean true to disable context takeover. noContext)Constructor |
| pack-priv | PerMessageDeflateEncoder(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 filter for per message deflate encoder. extensionEncoderFilter)Constructor |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | acceptOutboundMessage(Object msg)
Overrides io. true if the given message should be handled.
|
| 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 boolean | removeFrameTail(WebSocketFrame
the current frame. msg)Implements abstract io. |
| protected int | rsv(WebSocketFrame
the current frame. msg)Implements abstract io. |
| compressing | back to summary |
|---|---|
| private boolean compressing | |
| PerMessageDeflateEncoder | back to summary |
|---|---|
| pack-priv PerMessageDeflateEncoder(int compressionLevel, int windowSize, boolean noContext) Constructor
| |
| PerMessageDeflateEncoder | back to summary |
|---|---|
| pack-priv PerMessageDeflateEncoder(int compressionLevel, int windowSize, boolean noContext, WebSocketExtensionFilter extensionEncoderFilter) Constructor
| |
| acceptOutboundMessage | back to summary |
|---|---|
| public boolean acceptOutboundMessage(Object msg) throws Exception Overrides io. Doc from io. Returns
| |
| 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
| |
| removeFrameTail | back to summary |
|---|---|
| protected boolean removeFrameTail(WebSocketFrame msg) Implements abstract io.
| |
| rsv | back to summary |
|---|---|
| protected int rsv(WebSocketFrame msg) Implements abstract io.
| |