public interface HttpChunkTrailer extends HttpChunk
HttpChunk
which has trailing headers.LAST_CHUNK
Modifier and Type | Method and Description |
---|---|
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. |
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 |
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.
|
getContent, setContent
String getHeader(String name)
null
if there is no such headerList<String> getHeaders(String name)
List
of header values. An empty list if there is no
such header.List<Map.Entry<String,String>> getHeaders()
List
of the header name-value pairs. An empty list
if there is no header in this trailer.boolean containsHeader(String name)
true
if and only if there is a trailing header with
the specified header name.Set<String> getHeaderNames()
Set
of all trailing header names that this trailer
contains.void addHeader(String name, Object value)
void setHeader(String name, Object value)
void setHeader(String name, Iterable<?> values)
void removeHeader(String name)
void clearHeaders()
Copyright © 2008-2014 The Netty Project. All Rights Reserved.