Class DefaultHttpChunkTrailer
- java.lang.Object
-
- org.jboss.netty.handler.codec.http.DefaultHttpChunkTrailer
-
- All Implemented Interfaces:
HttpChunk
,HttpChunkTrailer
public class DefaultHttpChunkTrailer extends java.lang.Object implements HttpChunkTrailer
The defaultHttpChunkTrailer
implementation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
DefaultHttpChunkTrailer.TrailingHeaders
-
Field Summary
Fields Modifier and Type Field Description private HttpHeaders
trailingHeaders
-
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 private void
appendHeaders(java.lang.StringBuilder buf)
ChannelBuffer
getContent()
Returns the content of this chunk.boolean
isLast()
Always returnstrue
.void
setContent(ChannelBuffer content)
Sets the content of this chunk.java.lang.String
toString()
HttpHeaders
trailingHeaders()
Returns the trialing headers of this trailer.
-
-
-
Field Detail
-
trailingHeaders
private final HttpHeaders trailingHeaders
-
-
Method Detail
-
isLast
public boolean isLast()
Description copied from interface:HttpChunkTrailer
Always returnstrue
.- Specified by:
isLast
in interfaceHttpChunk
- Specified by:
isLast
in interfaceHttpChunkTrailer
-
getContent
public ChannelBuffer 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
public void setContent(ChannelBuffer content)
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
public HttpHeaders trailingHeaders()
Description copied from interface:HttpChunkTrailer
Returns the trialing headers of this trailer.- Specified by:
trailingHeaders
in interfaceHttpChunkTrailer
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
appendHeaders
private void appendHeaders(java.lang.StringBuilder buf)
-
-