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)
|
void |
setMethod(HttpMethod method)
Sets the
HttpMethod of this HttpRequest. |
void |
setUri(String uri)
Sets the URI (or alternatively, path) being requested.
|
String |
toString() |
addHeader, clearHeaders, containsHeader, getContent, getHeader, getHeaderNames, getHeaders, getHeaders, getProtocolVersion, getTransferEncoding, removeHeader, setContent, setHeader, setHeader, setProtocolVersion, setTransferEncodingclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddHeader, clearHeaders, containsHeader, getContent, getHeader, getHeaderNames, getHeaders, getHeaders, getProtocolVersion, getTransferEncoding, removeHeader, setContent, setHeader, setHeader, setProtocolVersion, setTransferEncodingpublic DefaultHttpRequest(HttpVersion httpVersion, HttpMethod method, String uri)
httpVersion - the HTTP version of the requestmethod - the HTTP method of the requesturi - the URI or path of the requestpublic HttpMethod getMethod()
HttpRequestHttpMethod of this HttpRequest.getMethod in interface HttpRequestHttpMethod of this HttpRequestpublic void setMethod(HttpMethod method)
HttpRequestHttpMethod of this HttpRequest.setMethod in interface HttpRequestpublic String getUri()
HttpRequestgetUri in interface HttpRequestpublic void setUri(String uri)
HttpRequestsetUri in interface HttpRequesturi - The URI being requestedpublic String toString()
toString in class DefaultHttpMessageCopyright © 2008-2012 The Netty Project. All Rights Reserved.