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

所有超级接口:
HttpMessage
所有已知实现类:
DefaultHttpRequest

public interface HttpRequest
extends HttpMessage

An HTTP request.

Accessing Query Parameters and Cookie

Unlike the Servlet API, a query string is constructed and decomposed by QueryStringEncoder and QueryStringDecoder. Cookie support is also provided separately via CookieEncoder and CookieDecoder.

另请参见:
HttpResponse, CookieEncoder, CookieDecoder

方法摘要
 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.
 
从接口 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
 

方法详细信息

getMethod

HttpMethod getMethod()
Returns the method of this request.


setMethod

void setMethod(HttpMethod method)
Sets the method of this request.


getUri

java.lang.String getUri()
Returns the URI (or path) of this request.


setUri

void setUri(java.lang.String uri)
Sets the URI (or path) of this request.