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 method of this request.
|
String |
getUri()
Returns the URI (or path) of this request.
|
void |
setMethod(HttpMethod method)
Sets the method of this request.
|
void |
setUri(String uri)
Sets the URI (or path) of this request.
|
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, 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
in interface HttpRequest
public void setMethod(HttpMethod method)
HttpRequest
setMethod
in interface HttpRequest
public String getUri()
HttpRequest
getUri
in interface HttpRequest
public void setUri(String uri)
HttpRequest
setUri
in interface HttpRequest
public String toString()
toString
in class DefaultHttpMessage
Copyright © 2008-2016 The Netty Project. All Rights Reserved.