public class RestGatewaySupport extends Object
Requires a ClientHttpRequestFactory or a RestTemplate instance to be set.
setRestTemplate(org.springframework.web.client.RestTemplate),
RestTemplate| Modifier and Type | Field and Description |
|---|---|
protected Log |
logger
Logger available to subclasses
|
| 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. |
protected final Log logger
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.