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

java.lang.Object
  继承者 org.jboss.netty.handler.codec.http.DefaultHttpMessage
      继承者 org.jboss.netty.handler.codec.http.DefaultHttpResponse
所有已实现的接口:
HttpMessage, HttpResponse

public class DefaultHttpResponse
extends DefaultHttpMessage
implements HttpResponse

The default HttpResponse implementation.


构造方法摘要
DefaultHttpResponse(HttpVersion version, HttpResponseStatus status)
          Creates a new instance.
 
方法摘要
 HttpResponseStatus getStatus()
          Returns the status of this response.
 void setStatus(HttpResponseStatus status)
          Sets the status of this response.
 java.lang.String toString()
           
 
从类 org.jboss.netty.handler.codec.http.DefaultHttpMessage 继承的方法
addHeader, clearHeaders, containsHeader, getContent, getContentLength, getContentLength, getHeader, getHeaderNames, getHeaders, getHeaders, getProtocolVersion, isChunked, isKeepAlive, removeHeader, setChunked, setContent, setHeader, setHeader, setProtocolVersion
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
从接口 org.jboss.netty.handler.codec.http.HttpMessage 继承的方法
addHeader, clearHeaders, containsHeader, getContent, getContentLength, getContentLength, getHeader, getHeaderNames, getHeaders, getHeaders, getProtocolVersion, isChunked, isKeepAlive, removeHeader, setChunked, setContent, setHeader, setHeader, setProtocolVersion
 

构造方法详细信息

DefaultHttpResponse

public DefaultHttpResponse(HttpVersion version,
                           HttpResponseStatus status)
Creates a new instance.

参数:
version - the HTTP version of this response
status - the status of this response
方法详细信息

getStatus

public HttpResponseStatus getStatus()
从接口 HttpResponse 复制的描述
Returns the status of this response.

指定者:
接口 HttpResponse 中的 getStatus

setStatus

public void setStatus(HttpResponseStatus status)
从接口 HttpResponse 复制的描述
Sets the status of this response.

指定者:
接口 HttpResponse 中的 setStatus

toString

public java.lang.String toString()
覆盖:
DefaultHttpMessage 中的 toString