org.jboss.netty.handler.codec.http
类 DefaultHttpChunkTrailer

java.lang.Object
  继承者 org.jboss.netty.handler.codec.http.DefaultHttpChunkTrailer
所有已实现的接口:
HttpChunk, HttpChunkTrailer

public class DefaultHttpChunkTrailer
extends java.lang.Object
implements HttpChunkTrailer

The default HttpChunkTrailer implementation.


字段摘要
 
从接口 org.jboss.netty.handler.codec.http.HttpChunk 继承的字段
LAST_CHUNK
 
构造方法摘要
DefaultHttpChunkTrailer()
           
 
方法摘要
 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.
 ChannelBuffer getContent()
          Returns the content of this chunk.
 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 setContent(ChannelBuffer content)
          Sets the content of this chunk.
 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.
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

DefaultHttpChunkTrailer

public DefaultHttpChunkTrailer()
方法详细信息

isLast

public boolean isLast()
从接口 HttpChunkTrailer 复制的描述
Always returns true.

指定者:
接口 HttpChunk 中的 isLast
指定者:
接口 HttpChunkTrailer 中的 isLast

addHeader

public void addHeader(java.lang.String name,
                      java.lang.Object value)
从接口 HttpChunkTrailer 复制的描述
Adds a new trailing header with the specified name and value.

指定者:
接口 HttpChunkTrailer 中的 addHeader

setHeader

public void setHeader(java.lang.String name,
                      java.lang.Object value)
从接口 HttpChunkTrailer 复制的描述
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.

指定者:
接口 HttpChunkTrailer 中的 setHeader

setHeader

public void setHeader(java.lang.String name,
                      java.lang.Iterable<?> values)
从接口 HttpChunkTrailer 复制的描述
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.

指定者:
接口 HttpChunkTrailer 中的 setHeader

removeHeader

public void removeHeader(java.lang.String name)
从接口 HttpChunkTrailer 复制的描述
Removes the trailing header with the specified name.

指定者:
接口 HttpChunkTrailer 中的 removeHeader

clearHeaders

public void clearHeaders()
从接口 HttpChunkTrailer 复制的描述
Removes all trailing headers from this trailer.

指定者:
接口 HttpChunkTrailer 中的 clearHeaders

getHeader

public java.lang.String getHeader(java.lang.String name)
从接口 HttpChunkTrailer 复制的描述
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.

指定者:
接口 HttpChunkTrailer 中的 getHeader
返回:
the header value or null if there is no such header

getHeaders

public java.util.List<java.lang.String> getHeaders(java.lang.String name)
从接口 HttpChunkTrailer 复制的描述
Returns the trailing header values with the specified header name.

指定者:
接口 HttpChunkTrailer 中的 getHeaders
返回:
the List of header values. An empty list if there is no such header.

getHeaders

public java.util.List<java.util.Map.Entry<java.lang.String,java.lang.String>> getHeaders()
从接口 HttpChunkTrailer 复制的描述
Returns the all header names and values that this trailer contains.

指定者:
接口 HttpChunkTrailer 中的 getHeaders
返回:
the List of the header name-value pairs. An empty list if there is no header in this trailer.

containsHeader

public boolean containsHeader(java.lang.String name)
从接口 HttpChunkTrailer 复制的描述
Returns true if and only if there is a trailing header with the specified header name.

指定者:
接口 HttpChunkTrailer 中的 containsHeader

getHeaderNames

public java.util.Set<java.lang.String> getHeaderNames()
从接口 HttpChunkTrailer 复制的描述
Returns the Set of all trailing header names that this trailer contains.

指定者:
接口 HttpChunkTrailer 中的 getHeaderNames

getContent

public ChannelBuffer getContent()
从接口 HttpChunk 复制的描述
Returns the content of this chunk. If this is the 'end of content' marker, ChannelBuffers.EMPTY_BUFFER will be returned.

指定者:
接口 HttpChunk 中的 getContent

setContent

public void setContent(ChannelBuffer content)
从接口 HttpChunk 复制的描述
Sets the content of this chunk. If an empty buffer is specified, this chunk becomes the 'end of content' marker.

指定者:
接口 HttpChunk 中的 setContent