class PerMessageDeflateDecoder extends DeflateDecoder
ChannelHandler.Sharable| Modifier and Type | Field and Description |
|---|---|
private boolean |
compressing |
FRAME_TAIL| Constructor and Description |
|---|
PerMessageDeflateDecoder(boolean noContext)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptInboundMessage(java.lang.Object msg)
Returns
true if the given message should be handled. |
protected boolean |
appendFrameTail(WebSocketFrame msg) |
protected void |
decode(ChannelHandlerContext ctx,
WebSocketFrame msg,
java.util.List<java.lang.Object> out)
Decode from one message to an other.
|
protected int |
newRsv(WebSocketFrame msg) |
channelInactive, handlerRemovedchannelReadchannelActive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredensureNotSharable, handlerAdded, isSharableclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithandlerAddedpublic PerMessageDeflateDecoder(boolean noContext)
noContext - true to disable context takeover.public boolean acceptInboundMessage(java.lang.Object msg)
throws java.lang.Exception
MessageToMessageDecodertrue if the given message should be handled. If false it will be passed to the next
ChannelInboundHandler in the ChannelPipeline.acceptInboundMessage in class MessageToMessageDecoder<WebSocketFrame>java.lang.Exceptionprotected int newRsv(WebSocketFrame msg)
newRsv in class DeflateDecoderprotected boolean appendFrameTail(WebSocketFrame msg)
appendFrameTail in class DeflateDecoderprotected void decode(ChannelHandlerContext ctx, WebSocketFrame msg, java.util.List<java.lang.Object> out) throws java.lang.Exception
MessageToMessageDecoderdecode in class DeflateDecoderctx - the ChannelHandlerContext which this MessageToMessageDecoder belongs tomsg - the message to decode to an other oneout - the List to which decoded messages should be addedjava.lang.Exception - is thrown if an error occurs