public class RestGatewaySupport
extends java.lang.Object
Requires a ClientHttpRequestFactory
or a RestTemplate
instance to be set.
setRestTemplate(org.springframework.web.client.RestTemplate)
,
RestTemplate
Constructor and Description |
---|
RestGatewaySupport()
Construct a new instance of the
RestGatewaySupport , with default parameters. |
RestGatewaySupport(ClientHttpRequestFactory requestFactory)
Construct a new instance of the
RestGatewaySupport , with the given ClientHttpRequestFactory . |
Modifier and Type | Method and Description |
---|---|
RestTemplate |
getRestTemplate()
Returns the
RestTemplate for the gateway. |
void |
setRestTemplate(RestTemplate restTemplate)
Sets the
RestTemplate for the gateway. |
public RestGatewaySupport()
RestGatewaySupport
, with default parameters.public RestGatewaySupport(ClientHttpRequestFactory requestFactory)
RestGatewaySupport
, with the given ClientHttpRequestFactory
.public void setRestTemplate(RestTemplate restTemplate)
RestTemplate
for the gateway.public RestTemplate getRestTemplate()
RestTemplate
for the gateway.