Class DefaultHttpChunk
- java.lang.Object
-
- org.jboss.netty.handler.codec.http.DefaultHttpChunk
-
-
Field Summary
Fields Modifier and Type Field Description private ChannelBuffercontentprivate booleanlast-
Fields inherited from interface org.jboss.netty.handler.codec.http.HttpChunk
LAST_CHUNK
-
-
Constructor Summary
Constructors Constructor Description DefaultHttpChunk(ChannelBuffer content)Creates a new instance with the specified chunk content.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChannelBuffergetContent()Returns the content of this chunk.booleanisLast()Returnstrueif and only if this chunk is the 'end of content' marker.voidsetContent(ChannelBuffer content)Sets the content of this chunk.
-
-
-
Field Detail
-
content
private ChannelBuffer content
-
last
private boolean last
-
-
Constructor Detail
-
DefaultHttpChunk
public DefaultHttpChunk(ChannelBuffer content)
Creates a new instance with the specified chunk content. If an empty buffer is specified, this chunk becomes the 'end of content' marker.
-
-
Method Detail
-
getContent
public ChannelBuffer getContent()
Description copied from interface:HttpChunkReturns the content of this chunk. If this is the 'end of content' marker,ChannelBuffers.EMPTY_BUFFERwill be returned.- Specified by:
getContentin interfaceHttpChunk
-
setContent
public void setContent(ChannelBuffer content)
Description copied from interface:HttpChunkSets the content of this chunk. If an empty buffer is specified, this chunk becomes the 'end of content' marker.- Specified by:
setContentin interfaceHttpChunk
-
-