Class RestGatewaySupport
java.lang.Object
org.springframework.web.client.support.RestGatewaySupport
Convenient superclass 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
FieldsModifier and TypeFieldDescriptionprotected final org.apache.commons.logging.LogLogger available to subclasses. - 
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
protected final org.apache.commons.logging.Log loggerLogger 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. 
 -