org.jboss.netty.handler.codec.http
接口 HttpChunkTrailer

所有超级接口:
HttpChunk
所有已知实现类:
DefaultHttpChunkTrailer

public interface HttpChunkTrailer
extends HttpChunk

The last HttpChunk which has trailing headers.


字段摘要
 
从接口 org.jboss.netty.handler.codec.http.HttpChunk 继承的字段
LAST_CHUNK
 
方法摘要
 void addHeader(java.lang.String name, java.lang.Object value)
          Adds a new trailing header with the specified name and value.
 void clearHeaders()
          Removes all trailing headers from this trailer.
 boolean containsHeader(java.lang.String name)
          Returns true if and only if there is a trailing header with the specified header name.
 java.lang.String getHeader(java.lang.String name)
          Returns the trailing header value with the specified header name.
 java.util.Set<java.lang.String> getHeaderNames()
          Returns the Set of all trailing header names that this trailer contains.
 java.util.List<java.util.Map.Entry<java.lang.String,java.lang.String>> getHeaders()
          Returns the all header names and values that this trailer contains.
 java.util.List<java.lang.String> getHeaders(java.lang.String name)
          Returns the trailing header values with the specified header name.
 boolean isLast()
          Always returns true.
 void removeHeader(java.lang.String name)
          Removes the trailing header with the specified name.
 void setHeader(java.lang.String name, java.lang.Iterable<?> values)
          Sets a new trailing header with the specified name and values.
 void setHeader(java.lang.String name, java.lang.Object value)
          Sets a new trailing header with the specified name and value.
 
从接口 org.jboss.netty.handler.codec.http.HttpChunk 继承的方法
getContent, setContent
 

方法详细信息

isLast

boolean isLast()
Always returns true.

指定者:
接口 HttpChunk 中的 isLast

getHeader

java.lang.String getHeader(java.lang.String name)
Returns the trailing header value with the specified header name. If there are more than one trailing header value for the specified header name, the first value is returned.

返回:
the header value or null if there is no such header

getHeaders

java.util.List<java.lang.String> getHeaders(java.lang.String name)
Returns the trailing header values with the specified header name.

返回:
the List of header values. An empty list if there is no such header.

getHeaders

java.util.List<java.util.Map.Entry<java.lang.String,java.lang.String>> getHeaders()
Returns the all header names and values that this trailer contains.

返回:
the List of the header name-value pairs. An empty list if there is no header in this trailer.

containsHeader

boolean containsHeader(java.lang.String name)
Returns true if and only if there is a trailing header with the specified header name.


getHeaderNames

java.util.Set<java.lang.String> getHeaderNames()
Returns the Set of all trailing header names that this trailer contains.


addHeader

void addHeader(java.lang.String name,
               java.lang.Object value)
Adds a new trailing header with the specified name and value.


setHeader

void setHeader(java.lang.String name,
               java.lang.Object value)
Sets a new trailing header with the specified name and value. If there is an existing trailing header with the same name, the existing one is removed.


setHeader

void setHeader(java.lang.String name,
               java.lang.Iterable<?> values)
Sets a new trailing header with the specified name and values. If there is an existing trailing header with the same name, the existing one is removed.


removeHeader

void removeHeader(java.lang.String name)
Removes the trailing header with the specified name.


clearHeaders

void clearHeaders()
Removes all trailing headers from this trailer.