Class RestGatewaySupport
- java.lang.Object
- org.springframework.web.client.support.RestGatewaySupport
public class RestGatewaySupport extends Object
Convenient super class for application classes that need REST access.Requires a
ClientHttpRequestFactoryor aRestTemplateinstance to be set.- Since:
- 3.0
- Author:
- Arjen Poutsma
- See Also:
setRestTemplate(org.springframework.web.client.RestTemplate),RestTemplate
Constructor Summary
Constructors Constructor Description RestGatewaySupport()Construct a new instance of theRestGatewaySupport, with default parameters.RestGatewaySupport(ClientHttpRequestFactory requestFactory)Construct a new instance of theRestGatewaySupport, with the givenClientHttpRequestFactory.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RestTemplategetRestTemplate()Returns theRestTemplatefor the gateway.voidsetRestTemplate(RestTemplate restTemplate)Sets theRestTemplatefor the gateway.
Constructor Detail
RestGatewaySupport
public RestGatewaySupport()
Construct a new instance of theRestGatewaySupport, with default parameters.
RestGatewaySupport
public RestGatewaySupport(ClientHttpRequestFactory requestFactory)
Construct a new instance of theRestGatewaySupport, with the givenClientHttpRequestFactory.
Method Detail
setRestTemplate
public void setRestTemplate(RestTemplate restTemplate)
Sets theRestTemplatefor the gateway.
getRestTemplate
public RestTemplate getRestTemplate()
Returns theRestTemplatefor the gateway.