Class DefaultHttpChunkTrailer
java.lang.Object
org.jboss.netty.handler.codec.http.DefaultHttpChunkTrailer
- All Implemented Interfaces:
HttpChunk
,HttpChunkTrailer
The default
HttpChunkTrailer
implementation.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final class
-
Field Summary
FieldsFields inherited from interface org.jboss.netty.handler.codec.http.HttpChunk
LAST_CHUNK
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
Returns the content of this chunk.boolean
isLast()
Always returnstrue
.void
setContent
(ChannelBuffer content) Sets the content of this chunk.toString()
Returns the trialing headers of this trailer.
-
Field Details
-
trailingHeaders
-
-
Constructor Details
-
DefaultHttpChunkTrailer
public DefaultHttpChunkTrailer()
-
-
Method Details
-
isLast
public boolean isLast()Description copied from interface:HttpChunkTrailer
Always returnstrue
.- Specified by:
isLast
in interfaceHttpChunk
- Specified by:
isLast
in interfaceHttpChunkTrailer
-
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
-
trailingHeaders
Description copied from interface:HttpChunkTrailer
Returns the trialing headers of this trailer.- Specified by:
trailingHeaders
in interfaceHttpChunkTrailer
-
toString
-
appendHeaders
-