public class HttpRequestWrapper extends Object implements HttpRequest
HttpRequest
interface
that can be overridden to adapt the request.
These methods default to calling through to the wrapped request object.
Constructor and Description |
---|
HttpRequestWrapper(HttpRequest request)
Create a new
HttpRequest wrapping the given request object. |
Modifier and Type | Method and Description |
---|---|
HttpHeaders |
getHeaders()
Return the headers of the wrapped request.
|
HttpMethod |
getMethod()
Return the method of the wrapped request.
|
String |
getMethodValue()
Return the method value of the wrapped request.
|
HttpRequest |
getRequest()
Return the wrapped request.
|
URI |
getURI()
Return 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()
@Nullable public HttpMethod getMethod()
getMethod
in interface HttpRequest
null
if not resolvable (e.g. in case of a non-standard HTTP method)public String getMethodValue()
getMethodValue
in interface HttpRequest
public URI getURI()
getURI
in interface HttpRequest
null
)public HttpHeaders getHeaders()
getHeaders
in interface HttpMessage
null
)