org.jboss.netty.handler.codec.http
Interface HttpChunk

All Known Implementing Classes:
DefaultHttpChunk

public interface HttpChunk

An HTTP chunk which is used for HTTP chunked transfer-encoding. HttpMessageDecoder generates HttpChunk after HttpMessage when the content is large or the encoding of the content is 'chunked. If you prefer not to receive HttpChunk in your handler, please HttpChunkAggregator after HttpMessageDecoder in the ChannelPipeline.

Version:
$Rev: 1685 $, $Date: 2009-08-28 16:15:49 +0900 (금, 28 8 2009) $
Author:
The Netty Project (netty-dev@lists.jboss.org), Trustin Lee (tlee@redhat.com)

Field Summary
static HttpChunk LAST_CHUNK
          The 'end of content' maker in chunked encoding.
 
Method Summary
 ChannelBuffer getContent()
          Returns the content of this chunk.
 boolean isLast()
          Returns true if and only if this chunk is the 'end of content' marker.
 

Field Detail

LAST_CHUNK

static final HttpChunk LAST_CHUNK
The 'end of content' maker in chunked encoding.

Method Detail

isLast

boolean isLast()
Returns true if and only if this chunk is the 'end of content' marker.


getContent

ChannelBuffer getContent()
Returns the content of this chunk. If this is the 'end of content' maker, ChannelBuffers.EMPTY_BUFFER will be returned.



Copyright © 2008-2009 JBoss, by Red Hat. All Rights Reserved.