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.Modifier and Type | Field and Description |
---|---|
private HttpRequest |
request |
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.
|
private final HttpRequest 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 HttpRequest
public java.net.URI getURI()
getURI
in interface HttpRequest
public HttpHeaders getHeaders()
getHeaders
in interface HttpMessage
public Cookies getCookies()
getCookies
in interface HttpMessage