Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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

All Known Subinterfaces:
  HttpChunkTrailer

All Known Implementing Classes:
  DefaultHttpChunk, DefaultHttpChunkTrailer

    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: 2080 $, $Date: 2010-01-26 18:04:19 +0900 (Tue, 26 Jan 2010) $
Author:
  The Netty Project, Trustin Lee

Field Summary
`static HttpChunkTrailer` | `LAST_CHUNK` The 'end of content' marker 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.
`void` | `setContent(ChannelBuffer content)` Sets the content of this chunk.

Field Detail

### LAST_CHUNK

    static final HttpChunkTrailer LAST_CHUNK

  The 'end of content' marker 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' marker, `ChannelBuffers.EMPTY_BUFFER` will be returned.

### setContent

    void setContent(ChannelBuffer content)

  Sets the content of this chunk. If an empty buffer is specified, this chunk becomes the 'end of content' marker.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2008-2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.