public class HttpRequestWrapper extends java.lang.Object implements HttpRequest
HttpRequest interface that can be overridden to adapt the
request. Methods default to calling through to the wrapped request object.| Constructor and Description |
|---|
HttpRequestWrapper(HttpRequest request)
Creates a new
HttpRequest wrapping the given request object. |
| Modifier and Type | Method and Description |
|---|---|
Cookies |
getCookies()
Returns the cookies of the wrapped request.
|
HttpHeaders |
getHeaders()
Returns the headers of the wrapped request.
|
HttpMethod |
getMethod()
Returns the method of the wrapped request.
|
HttpRequest |
getRequest()
Returns the wrapped request.
|
java.net.URI |
getURI()
Returns the URI of the wrapped request.
|
public HttpRequestWrapper(HttpRequest request)
HttpRequest wrapping the given request object.request - the request object to be wrappedpublic HttpRequest getRequest()
public HttpMethod getMethod()
getMethod in interface HttpRequestpublic java.net.URI getURI()
getURI in interface HttpRequestpublic HttpHeaders getHeaders()
getHeaders in interface HttpMessagepublic Cookies getCookies()
getCookies in interface HttpMessage