public class DefaultHttpRequest extends DefaultHttpMessage implements HttpRequest
HttpRequest
implementation.构造器和说明 |
---|
DefaultHttpRequest(HttpVersion httpVersion,
HttpMethod method,
java.lang.String uri)
Creates a new instance.
|
DefaultHttpRequest(HttpVersion httpVersion,
HttpMethod method,
java.lang.String uri,
boolean validateHeaders)
Creates a new instance.
|
限定符和类型 | 方法和说明 |
---|---|
HttpMethod |
getMethod()
Returns the
HttpMethod of this HttpRequest . |
java.lang.String |
getUri()
Returns the requested URI (or alternatively, path)
|
HttpRequest |
setMethod(HttpMethod method)
Set the
HttpMethod of this HttpRequest . |
HttpRequest |
setProtocolVersion(HttpVersion version)
Set the protocol version of this
HttpMessage |
HttpRequest |
setUri(java.lang.String uri)
Set the requested URI (or alternatively, path)
|
java.lang.String |
toString() |
getProtocolVersion, headers
getDecoderResult, setDecoderResult
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getProtocolVersion, headers
getDecoderResult, setDecoderResult
public DefaultHttpRequest(HttpVersion httpVersion, HttpMethod method, java.lang.String uri)
httpVersion
- the HTTP version of the requestmethod
- the HTTP getMethod of the requesturi
- the URI or path of the requestpublic DefaultHttpRequest(HttpVersion httpVersion, HttpMethod method, java.lang.String uri, boolean validateHeaders)
httpVersion
- the HTTP version of the requestmethod
- the HTTP getMethod of the requesturi
- the URI or path of the requestvalidateHeaders
- validate the headers when adding thempublic HttpMethod getMethod()
HttpRequest
HttpMethod
of this HttpRequest
.getMethod
在接口中 HttpRequest
HttpMethod
of this HttpRequest
public java.lang.String getUri()
HttpRequest
getUri
在接口中 HttpRequest
public HttpRequest setMethod(HttpMethod method)
HttpRequest
HttpMethod
of this HttpRequest
.setMethod
在接口中 HttpRequest
public HttpRequest setUri(java.lang.String uri)
HttpRequest
setUri
在接口中 HttpRequest
public HttpRequest setProtocolVersion(HttpVersion version)
HttpMessage
HttpMessage
setProtocolVersion
在接口中 HttpMessage
setProtocolVersion
在接口中 HttpRequest
setProtocolVersion
在类中 DefaultHttpMessage
public java.lang.String toString()
toString
在类中 java.lang.Object