Class PerFrameDeflateDecoder
- java.lang.Object
-
- io.netty.channel.ChannelHandlerAdapter
-
- io.netty.channel.ChannelInboundHandlerAdapter
-
- io.netty.handler.codec.MessageToMessageDecoder<WebSocketFrame>
-
- io.netty.handler.codec.http.websocketx.extensions.WebSocketExtensionDecoder
-
- io.netty.handler.codec.http.websocketx.extensions.compression.DeflateDecoder
-
- io.netty.handler.codec.http.websocketx.extensions.compression.PerFrameDeflateDecoder
-
- All Implemented Interfaces:
ChannelHandler
,ChannelInboundHandler
class PerFrameDeflateDecoder extends DeflateDecoder
Per-frame implementation of deflate decompressor.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
ChannelHandler.Sharable
-
-
Field Summary
-
Fields inherited from class io.netty.handler.codec.http.websocketx.extensions.compression.DeflateDecoder
EMPTY_DEFLATE_BLOCK, FRAME_TAIL
-
-
Constructor Summary
Constructors Constructor Description PerFrameDeflateDecoder(boolean noContext)
ConstructorPerFrameDeflateDecoder(boolean noContext, WebSocketExtensionFilter extensionDecoderFilter)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
acceptInboundMessage(java.lang.Object msg)
Returnstrue
if the given message should be handled.protected boolean
appendFrameTail(WebSocketFrame msg)
protected int
newRsv(WebSocketFrame msg)
-
Methods inherited from class io.netty.handler.codec.http.websocketx.extensions.compression.DeflateDecoder
channelInactive, decode, extensionDecoderFilter, handlerRemoved
-
Methods inherited from class io.netty.handler.codec.MessageToMessageDecoder
channelRead
-
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
-
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, isSharable
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.netty.channel.ChannelHandler
handlerAdded
-
-
-
-
Constructor Detail
-
PerFrameDeflateDecoder
PerFrameDeflateDecoder(boolean noContext)
Constructor- Parameters:
noContext
- true to disable context takeover.
-
PerFrameDeflateDecoder
PerFrameDeflateDecoder(boolean noContext, WebSocketExtensionFilter extensionDecoderFilter)
Constructor- Parameters:
noContext
- true to disable context takeover.extensionDecoderFilter
- extension decoder filter for per frame deflate decoder.
-
-
Method Detail
-
acceptInboundMessage
public boolean acceptInboundMessage(java.lang.Object msg) throws java.lang.Exception
Description copied from class:MessageToMessageDecoder
Returnstrue
if the given message should be handled. Iffalse
it will be passed to the nextChannelInboundHandler
in theChannelPipeline
.- Overrides:
acceptInboundMessage
in classMessageToMessageDecoder<WebSocketFrame>
- Throws:
java.lang.Exception
-
newRsv
protected int newRsv(WebSocketFrame msg)
- Specified by:
newRsv
in classDeflateDecoder
-
appendFrameTail
protected boolean appendFrameTail(WebSocketFrame msg)
- Specified by:
appendFrameTail
in classDeflateDecoder
-
-