org.jboss.netty.handler.codec.http2
Class HttpContentDecompressor

java.lang.Object
  extended by org.jboss.netty.channel.SimpleChannelUpstreamHandler
      extended by org.jboss.netty.handler.codec.http2.HttpContentDecoder
          extended by org.jboss.netty.handler.codec.http2.HttpContentDecompressor
All Implemented Interfaces:
org.jboss.netty.channel.ChannelHandler, org.jboss.netty.channel.ChannelUpstreamHandler

public class HttpContentDecompressor
extends HttpContentDecoder

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.

Version:
$Rev: 1107 $, $Date: 2012-04-15 19:00:57 +0200 (dim., 15 avr. 2012) $
Author:
The Netty Project, Trustin Lee

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.jboss.netty.channel.ChannelHandler
org.jboss.netty.channel.ChannelHandler.Sharable
 
Constructor Summary
HttpContentDecompressor()
           
 
Method Summary
protected  org.jboss.netty.handler.codec.embedder.DecoderEmbedder<org.jboss.netty.buffer.ChannelBuffer> newContentDecoder(String contentEncoding)
          Returns a new DecoderEmbedder that decodes the HTTP message content encoded in the specified contentEncoding.
 
Methods inherited from class org.jboss.netty.handler.codec.http2.HttpContentDecoder
getTargetContentEncoding, messageReceived
 
Methods inherited from class org.jboss.netty.channel.SimpleChannelUpstreamHandler
channelBound, channelClosed, channelConnected, channelDisconnected, channelInterestChanged, channelOpen, channelUnbound, childChannelClosed, childChannelOpen, exceptionCaught, handleUpstream, writeComplete
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpContentDecompressor

public HttpContentDecompressor()
Method Detail

newContentDecoder

protected org.jboss.netty.handler.codec.embedder.DecoderEmbedder<org.jboss.netty.buffer.ChannelBuffer> newContentDecoder(String contentEncoding)
                                                                                                                  throws Exception
Description copied from class: HttpContentDecoder
Returns a new DecoderEmbedder that decodes the HTTP message content encoded in the specified contentEncoding.

Specified by:
newContentDecoder in class HttpContentDecoder
Parameters:
contentEncoding - the value of the "Content-Encoding" header
Returns:
a new DecoderEmbedder if the specified encoding is supported. null otherwise (alternatively, you can throw an exception to block unknown encoding).
Throws:
Exception


Copyright © 2009-2012 Frederic Bregier. All Rights Reserved.