public class DefaultHttpRequest extends DefaultHttpMessage implements HttpRequest
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() |
getContent, getProtocolVersion, headers, isChunked, setChunked, setContent, setProtocolVersion
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getContent, getProtocolVersion, headers, isChunked, setChunked, setContent, setProtocolVersion
public DefaultHttpRequest(HttpVersion httpVersion, HttpMethod method, java.lang.String uri)
httpVersion
- the HTTP version of the requestmethod
- the HTTP method of the requesturi
- the URI or path of the requestpublic HttpMethod getMethod()
HttpRequest
getMethod
在接口中 HttpRequest
public void setMethod(HttpMethod method)
HttpRequest
setMethod
在接口中 HttpRequest
public java.lang.String getUri()
HttpRequest
getUri
在接口中 HttpRequest
public void setUri(java.lang.String uri)
HttpRequest
setUri
在接口中 HttpRequest
public java.lang.String toString()
toString
在类中 DefaultHttpMessage