Class DefaultHttpChunk
java.lang.Object
org.jboss.netty.handler.codec.http.DefaultHttpChunk
- All Implemented Interfaces:
HttpChunk
The default
HttpChunk
implementation.-
Field Summary
FieldsFields inherited from interface org.jboss.netty.handler.codec.http.HttpChunk
LAST_CHUNK
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultHttpChunk
(ChannelBuffer content) Creates a new instance with the specified chunk content. -
Method Summary
Modifier and TypeMethodDescriptionReturns the content of this chunk.boolean
isLast()
Returnstrue
if and only if this chunk is the 'end of content' marker.void
setContent
(ChannelBuffer content) Sets the content of this chunk.
-
Field Details
-
-
last
private boolean last
-
-
Constructor Details
-
DefaultHttpChunk
Creates a new instance with the specified chunk content. If an empty buffer is specified, this chunk becomes the 'end of content' marker.
-
-
Method Details
-
getContent
Description copied from interface:HttpChunk
Returns the content of this chunk. If this is the 'end of content' marker,ChannelBuffers.EMPTY_BUFFER
will be returned.- Specified by:
getContent
in interfaceHttpChunk
-
setContent
Description copied from interface:HttpChunk
Sets the content of this chunk. If an empty buffer is specified, this chunk becomes the 'end of content' marker.- Specified by:
setContent
in interfaceHttpChunk
-
isLast
public boolean isLast()Description copied from interface:HttpChunk
Returnstrue
if and only if this chunk is the 'end of content' marker.
-