Class HttpContentDecompressor
java.lang.Object
org.jboss.netty.channel.SimpleChannelUpstreamHandler
org.jboss.netty.handler.codec.http.HttpContentDecoder
org.jboss.netty.handler.codec.http.HttpContentDecompressor
- All Implemented Interfaces:
ChannelHandler, ChannelUpstreamHandler, LifeCycleAwareChannelHandler
Decompresses an
HttpMessage and an HttpChunk compressed in
gzip or deflate encoding. For more information on how this
handler modifies the message, please refer to HttpContentDecoder.-
Nested Class Summary
Nested classes/interfaces inherited from interface ChannelHandler
ChannelHandler.Sharable -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected DecoderEmbedder<ChannelBuffer> newContentDecoder(String contentEncoding) Returns a newDecoderEmbedderthat decodes the HTTP message content encoded in the specified contentEncoding.Methods inherited from class HttpContentDecoder
afterAdd, afterRemove, beforeAdd, beforeRemove, channelClosed, getTargetContentEncoding, messageReceivedMethods inherited from class SimpleChannelUpstreamHandler
channelBound, channelConnected, channelDisconnected, channelInterestChanged, channelOpen, channelUnbound, childChannelClosed, childChannelOpen, exceptionCaught, handleUpstream, writeComplete
-
Constructor Details
-
HttpContentDecompressor
public HttpContentDecompressor()
-
-
Method Details
-
newContentDecoder
Description copied from class:HttpContentDecoderReturns a newDecoderEmbedderthat decodes the HTTP message content encoded in the specified contentEncoding.- Specified by:
newContentDecoderin classHttpContentDecoder- Parameters:
contentEncoding- the value of the"Content-Encoding"header- Returns:
- a new
DecoderEmbedderif the specified encoding is supported.nullotherwise (alternatively, you can throw an exception to block unknown encoding). - Throws:
Exception
-