Class RestGatewaySupport
java.lang.Object
org.springframework.web.client.support.RestGatewaySupport
Convenient superclass for application classes that need REST access.
Requires a ClientHttpRequestFactory
or a RestTemplate
instance to be set.
- Since:
- 3.0
- Author:
- Arjen Poutsma
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionConstruct a new instance of theRestGatewaySupport
, with default parameters.RestGatewaySupport
(ClientHttpRequestFactory requestFactory) Construct a new instance of theRestGatewaySupport
, with the givenClientHttpRequestFactory
. -
Method Summary
Modifier and TypeMethodDescriptionReturns theRestTemplate
for the gateway.void
setRestTemplate
(RestTemplate restTemplate) Sets theRestTemplate
for the gateway.
-
Field Details
-
logger
Logger available to subclasses.
-
-
Constructor Details
-
RestGatewaySupport
public RestGatewaySupport()Construct a new instance of theRestGatewaySupport
, with default parameters. -
RestGatewaySupport
Construct a new instance of theRestGatewaySupport
, with the givenClientHttpRequestFactory
.- See Also:
-
-
Method Details
-
setRestTemplate
Sets theRestTemplate
for the gateway. -
getRestTemplate
Returns theRestTemplate
for the gateway.
-