public class DefaultHttpRequest extends DefaultHttpMessage implements HttpRequest
HttpRequest implementation.| Constructor and Description |
|---|
DefaultHttpRequest(HttpVersion httpVersion,
HttpMethod method,
String uri)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
HttpMethod |
getMethod()
Returns the
HttpMethod of this HttpRequest. |
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(String uri)
Set the requested URI (or alternatively, path)
|
String |
toString() |
getProtocolVersion, headersgetDecoderResult, setDecoderResultclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetProtocolVersion, headersgetDecoderResult, setDecoderResultpublic DefaultHttpRequest(HttpVersion httpVersion, HttpMethod method, String uri)
httpVersion - the HTTP version of the requestmethod - the HTTP getMethod of the requesturi - the URI or path of the requestpublic HttpMethod getMethod()
HttpRequestHttpMethod of this HttpRequest.getMethod in interface HttpRequestHttpMethod of this HttpRequestpublic String getUri()
HttpRequestgetUri in interface HttpRequestpublic HttpRequest setMethod(HttpMethod method)
HttpRequestHttpMethod of this HttpRequest.setMethod in interface HttpRequestpublic HttpRequest setUri(String uri)
HttpRequestsetUri in interface HttpRequestpublic HttpRequest setProtocolVersion(HttpVersion version)
HttpMessageHttpMessagesetProtocolVersion in interface HttpMessagesetProtocolVersion in interface HttpRequestsetProtocolVersion in class DefaultHttpMessagepublic String toString()
toString in class DefaultHttpMessageCopyright © 2008–2013 The Netty Project. All rights reserved.