public class HttpRequestWrapper extends 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 |
|---|---|
HttpHeaders |
getHeaders()
Returns the headers of the wrapped request.
|
HttpMethod |
getMethod()
Returns the method of the wrapped request.
|
HttpRequest |
getRequest()
Returns the wrapped request.
|
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 URI getURI()
getURI in interface HttpRequestpublic HttpHeaders getHeaders()
getHeaders in interface HttpMessage