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
ClientHttpRequestFactory
or aRestTemplate
instance 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 RestTemplate
getRestTemplate()
Returns theRestTemplate
for the gateway.void
setRestTemplate(RestTemplate restTemplate)
Sets theRestTemplate
for 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 theRestTemplate
for the gateway.
getRestTemplate
public RestTemplate getRestTemplate()
Returns theRestTemplate
for the gateway.