Top Description Fields Constructors Methods
org.springframework.web.client.support

public Class RestGatewaySupport

extends Object
Class Inheritance
Imports
org.apache.commons.logging.Log, .LogFactory, org.springframework.http.client.ClientHttpRequestFactory, org.springframework.util.Assert, org.springframework.web.client.RestTemplate

Convenient superclass for application classes that need REST access.

Requires a ClientHttpRequestFactory or a RestTemplate instance to be set.

Author
Arjen Poutsma
Since
3.0
See Also
setRestTemplate, org.springframework.web.client.RestTemplate

Field Summary

Modifier and TypeField and Description
protected final Log
logger

Logger available to subclasses.

private RestTemplate

Constructor Summary

AccessConstructor and Description
public
RestGatewaySupport()

Construct a new instance of the RestGatewaySupport, with default parameters.

public
RestGatewaySupport(ClientHttpRequestFactory requestFactory)

Construct a new instance of the RestGatewaySupport, with the given ClientHttpRequestFactory.

Method Summary

Modifier and TypeMethod and Description
public RestTemplate
getRestTemplate()

Returns the RestTemplate for the gateway.

public void
setRestTemplate(RestTemplate restTemplate)

Sets the RestTemplate for the gateway.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

loggerback to summary
protected final Log logger

Logger available to subclasses.

restTemplateback to summary
private RestTemplate restTemplate

Constructor Detail

RestGatewaySupportback to summary
public RestGatewaySupport()

Construct a new instance of the RestGatewaySupport, with default parameters.

RestGatewaySupportback to summary
public RestGatewaySupport(ClientHttpRequestFactory requestFactory)

Construct a new instance of the RestGatewaySupport, with the given ClientHttpRequestFactory.

See Also
RestTemplate#RestTemplate(ClientHttpRequestFactory)

Method Detail

getRestTemplateback to summary
public RestTemplate getRestTemplate()

Returns the RestTemplate for the gateway.

setRestTemplateback to summary
public void setRestTemplate(RestTemplate restTemplate)

Sets the RestTemplate for the gateway.