|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.netty.handler.codec.http2.DefaultHttpChunkTrailer
public class DefaultHttpChunkTrailer

The default HttpChunkTrailer implementation.
| Field Summary |
|---|
| Fields inherited from interface org.jboss.netty.handler.codec.http2.HttpChunk |
|---|
LAST_CHUNK |
| Constructor Summary | |
|---|---|
DefaultHttpChunkTrailer()
|
|
| Method Summary | |
|---|---|
void |
addHeader(String name,
Object value)
Adds a new trailing header with the specified name and value. |
void |
clearHeaders()
Removes all trailing headers from this trailer. |
boolean |
containsHeader(String name)
Returns true if and only if there is a trailing header with
the specified header name. |
org.jboss.netty.buffer.ChannelBuffer |
getContent()
Returns the content of this chunk. |
String |
getHeader(String name)
Returns the trailing header value with the specified header name. |
Set<String> |
getHeaderNames()
Returns the Set of all trailing header names that this trailer
contains. |
List<Map.Entry<String,String>> |
getHeaders()
Returns the all header names and values that this trailer contains. |
List<String> |
getHeaders(String name)
Returns the trailing header values with the specified header name. |
boolean |
isLast()
Always returns true. |
void |
removeHeader(String name)
Removes the trailing header with the specified name. |
void |
setContent(org.jboss.netty.buffer.ChannelBuffer content)
Sets the content of this chunk. |
void |
setHeader(String name,
Iterable<?> values)
Sets a new trailing header with the specified name and values. |
void |
setHeader(String name,
Object value)
Sets a new trailing header with the specified name and value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultHttpChunkTrailer()
| Method Detail |
|---|
public boolean isLast()
HttpChunkTrailertrue.
isLast in interface HttpChunkisLast in interface HttpChunkTrailer
public void addHeader(String name,
Object value)
HttpChunkTrailer
addHeader in interface HttpChunkTrailer
public void setHeader(String name,
Object value)
HttpChunkTrailer
setHeader in interface HttpChunkTrailer
public void setHeader(String name,
Iterable<?> values)
HttpChunkTrailer
setHeader in interface HttpChunkTrailerpublic void removeHeader(String name)
HttpChunkTrailer
removeHeader in interface HttpChunkTrailerpublic void clearHeaders()
HttpChunkTrailer
clearHeaders in interface HttpChunkTrailerpublic String getHeader(String name)
HttpChunkTrailer
getHeader in interface HttpChunkTrailernull if there is no such headerpublic List<String> getHeaders(String name)
HttpChunkTrailer
getHeaders in interface HttpChunkTrailerList of header values. An empty list if there is no
such header.public List<Map.Entry<String,String>> getHeaders()
HttpChunkTrailer
getHeaders in interface HttpChunkTrailerList of the header name-value pairs. An empty list
if there is no header in this trailer.public boolean containsHeader(String name)
HttpChunkTrailertrue if and only if there is a trailing header with
the specified header name.
containsHeader in interface HttpChunkTrailerpublic Set<String> getHeaderNames()
HttpChunkTrailerSet of all trailing header names that this trailer
contains.
getHeaderNames in interface HttpChunkTrailerpublic org.jboss.netty.buffer.ChannelBuffer getContent()
HttpChunkChannelBuffers.EMPTY_BUFFER will be returned.
getContent in interface HttpChunkpublic void setContent(org.jboss.netty.buffer.ChannelBuffer content)
HttpChunk
setContent in interface HttpChunk
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||