Class HttpRequestWrapper
java.lang.Object
org.springframework.http.client.support.HttpRequestWrapper
- All Implemented Interfaces:
- HttpMessage,- HttpRequest
Provides a convenient implementation of the 
HttpRequest interface
 that can be overridden to adapt the request.
 These methods default to calling through to the wrapped request object.
- Since:
- 3.1
- Author:
- Arjen Poutsma
- 
Constructor SummaryConstructorsConstructorDescriptionHttpRequestWrapper(HttpRequest request) Create a newHttpRequestwrapping the given request object.
- 
Method SummaryModifier and TypeMethodDescriptionReturn the headers of the wrapped request.Return the method of the wrapped request.Deprecated.Return the wrapped request.getURI()Return the URI of the wrapped request.
- 
Constructor Details- 
HttpRequestWrapperCreate a newHttpRequestwrapping the given request object.- Parameters:
- request- the request object to be wrapped
 
 
- 
- 
Method Details- 
getRequestReturn the wrapped request.
- 
getMethodReturn the method of the wrapped request.- Specified by:
- getMethodin interface- HttpRequest
- Returns:
- the HTTP method as an HttpMethod value
- See Also:
 
- 
getMethodValueDeprecated.Return the method value of the wrapped request.- Specified by:
- getMethodValuein interface- HttpRequest
- Returns:
- the HTTP method as a plain String
- See Also:
 
- 
getURIReturn the URI of the wrapped request.- Specified by:
- getURIin interface- HttpRequest
- Returns:
- the URI of the request (never null)
 
- 
getHeadersReturn the headers of the wrapped request.- Specified by:
- getHeadersin interface- HttpMessage
- Returns:
- a corresponding HttpHeaders object (never null)
 
 
-