Class DefaultHttpChunkTrailer
- java.lang.Object
-
- org.jboss.netty.handler.codec.http.DefaultHttpChunkTrailer
-
- All Implemented Interfaces:
HttpChunk,HttpChunkTrailer
public class DefaultHttpChunkTrailer extends Object implements HttpChunkTrailer
The defaultHttpChunkTrailerimplementation.
-
-
Field Summary
-
Fields inherited from interface org.jboss.netty.handler.codec.http.HttpChunk
LAST_CHUNK
-
-
Constructor Summary
Constructors Constructor Description DefaultHttpChunkTrailer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChannelBuffergetContent()Returns the content of this chunk.booleanisLast()Always returnstrue.voidsetContent(ChannelBuffer content)Sets the content of this chunk.StringtoString()HttpHeaderstrailingHeaders()Returns the trialing headers of this trailer.
-
-
-
Method Detail
-
isLast
public boolean isLast()
Description copied from interface:HttpChunkTrailerAlways returnstrue.- Specified by:
isLastin interfaceHttpChunk- Specified by:
isLastin interfaceHttpChunkTrailer
-
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
-
trailingHeaders
public HttpHeaders trailingHeaders()
Description copied from interface:HttpChunkTrailerReturns the trialing headers of this trailer.- Specified by:
trailingHeadersin interfaceHttpChunkTrailer
-
-