public class DefaultHttpRequest extends DefaultHttpMessage implements HttpRequest
HttpRequest implementation.| Modifier and Type | Field and Description |
|---|---|
private HttpMethod |
method |
private java.lang.String |
uri |
| Constructor and Description |
|---|
DefaultHttpRequest(HttpVersion httpVersion,
HttpMethod method,
java.lang.String uri)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
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() |
appendHeaders, getContent, getProtocolVersion, headers, isChunked, setChunked, setContent, setProtocolVersionclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetContent, getProtocolVersion, headers, isChunked, setChunked, setContent, setProtocolVersionprivate HttpMethod method
private java.lang.String uri
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()
HttpRequestgetMethod in interface HttpRequestpublic void setMethod(HttpMethod method)
HttpRequestsetMethod in interface HttpRequestpublic java.lang.String getUri()
HttpRequestgetUri in interface HttpRequestpublic void setUri(java.lang.String uri)
HttpRequestsetUri in interface HttpRequestpublic java.lang.String toString()
toString in class DefaultHttpMessage