class PerFrameDeflateEncoder extends DeflateEncoder
ChannelHandler.Sharable| Constructor and Description |
|---|
PerFrameDeflateEncoder(int compressionLevel,
int windowSize,
boolean noContext)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptOutboundMessage(java.lang.Object msg)
Returns
true if the given message should be handled. |
protected boolean |
removeFrameTail(WebSocketFrame msg) |
protected int |
rsv(WebSocketFrame msg) |
encode, handlerRemovedwritebind, close, connect, deregister, disconnect, flush, readensureNotSharable, exceptionCaught, handlerAdded, isSharableclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexceptionCaught, handlerAddedpublic PerFrameDeflateEncoder(int compressionLevel,
int windowSize,
boolean noContext)
compressionLevel - compression level of the compressor.windowSize - maximum size of the window compressor buffer.noContext - true to disable context takeover.public boolean acceptOutboundMessage(java.lang.Object msg)
throws java.lang.Exception
MessageToMessageEncodertrue if the given message should be handled. If false it will be passed to the next
ChannelOutboundHandler in the ChannelPipeline.acceptOutboundMessage in class MessageToMessageEncoder<WebSocketFrame>java.lang.Exceptionprotected int rsv(WebSocketFrame msg)
rsv in class DeflateEncodermsg - the current frame.protected boolean removeFrameTail(WebSocketFrame msg)
removeFrameTail in class DeflateEncodermsg - the current frame.