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
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
ConstructorsConstructorDescriptionPerFrameDeflateDecoder(boolean noContext, int maxAllocation) ConstructorPerFrameDeflateDecoder(boolean noContext, WebSocketExtensionFilter extensionDecoderFilter, int maxAllocation) Constructor -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturnstrueif the given message should be handled.protected booleanprotected intnewRsv(WebSocketFrame msg) Methods inherited from class io.netty.handler.codec.http.websocketx.extensions.compression.DeflateDecoder
channelInactive, decode, extensionDecoderFilter, handlerRemovedMethods inherited from class io.netty.handler.codec.MessageToMessageDecoder
channelRead, channelReadCompleteMethods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredMethods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, isSharableMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.netty.channel.ChannelHandler
handlerAdded
-
Constructor Details
-
PerFrameDeflateDecoder
PerFrameDeflateDecoder(boolean noContext, int maxAllocation) Constructor- Parameters:
noContext- true to disable context takeover.maxAllocation- maximum size of the decompression buffer. Must be >= 0. If zero, maximum size is not limited.
-
PerFrameDeflateDecoder
PerFrameDeflateDecoder(boolean noContext, WebSocketExtensionFilter extensionDecoderFilter, int maxAllocation) Constructor- Parameters:
noContext- true to disable context takeover.extensionDecoderFilter- extension decoder filter for per frame deflate decoder.maxAllocation- maximum size of the decompression buffer. Must be >= 0. If zero, maximum size is not limited.
-
-
Method Details
-
acceptInboundMessage
Description copied from class:MessageToMessageDecoderReturnstrueif the given message should be handled. Iffalseit will be passed to the nextChannelInboundHandlerin theChannelPipeline.- Overrides:
acceptInboundMessagein classMessageToMessageDecoder<WebSocketFrame>- Throws:
Exception
-
newRsv
- Specified by:
newRsvin classDeflateDecoder
-
appendFrameTail
- Specified by:
appendFrameTailin classDeflateDecoder
-