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

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

public class DefaultHttpRequest
extends DefaultHttpMessage
implements HttpRequest

The default HttpRequest implementation.


构造方法摘要
DefaultHttpRequest(HttpVersion httpVersion, HttpMethod method, java.lang.String uri)
          Creates a new instance.
 
方法摘要
 HttpMethod getMethod()
          Returns the method of this request.
 java.lang.String getUri()
          Returns the URI (or path) of this request.
 void setMethod(HttpMethod method)
          Sets the method of this request.
 void setUri(java.lang.String uri)
          Sets the URI (or path) of this request.
 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
 

构造方法详细信息

DefaultHttpRequest

public DefaultHttpRequest(HttpVersion httpVersion,
                          HttpMethod method,
                          java.lang.String uri)
Creates a new instance.

参数:
httpVersion - the HTTP version of the request
method - the HTTP method of the request
uri - the URI or path of the request
方法详细信息

getMethod

public HttpMethod getMethod()
从接口 HttpRequest 复制的描述
Returns the method of this request.

指定者:
接口 HttpRequest 中的 getMethod

setMethod

public void setMethod(HttpMethod method)
从接口 HttpRequest 复制的描述
Sets the method of this request.

指定者:
接口 HttpRequest 中的 setMethod

getUri

public java.lang.String getUri()
从接口 HttpRequest 复制的描述
Returns the URI (or path) of this request.

指定者:
接口 HttpRequest 中的 getUri

setUri

public void setUri(java.lang.String uri)
从接口 HttpRequest 复制的描述
Sets the URI (or path) of this request.

指定者:
接口 HttpRequest 中的 setUri

toString

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