
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.
|
String |
toString() |
addHeader, clearHeaders, containsHeader, getContent, getContentLength, getContentLength, getHeader, getHeaderNames, getHeaders, getProtocolVersion, isChunked, isKeepAlive, removeHeader, setContent, setHeader, setHeaderclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddHeader, clearHeaders, containsHeader, getContent, getContentLength, getContentLength, getHeader, getHeaderNames, getHeaders, getProtocolVersion, isChunked, isKeepAlive, removeHeader, setContent, setHeader, setHeaderpublic 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()
HttpRequestgetMethod in interface HttpRequestpublic String getUri()
HttpRequestgetUri in interface HttpRequestCopyright © 2008-2013 JBoss, by Red Hat. All Rights Reserved.