Class RestGatewaySupport
java.lang.Object
org.springframework.web.client.support.RestGatewaySupport
Convenient super class 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
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstruct 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 theRestTemplatefor the gateway.voidsetRestTemplate(RestTemplate restTemplate) Sets theRestTemplatefor 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 theRestTemplatefor the gateway. -
getRestTemplate
Returns theRestTemplatefor the gateway.
-