public class

RestGatewaySupport

extends Object
java.lang.Object
   ↳ org.springframework.web.client.support.RestGatewaySupport

Class Overview

Convenient super class for application classes that need REST access.

Requires a ClientHttpRequestFactory or a RestTemplate instance to be set.

Summary

Fields
protected final Log logger Logger available to subclasses
Public Constructors
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.
Public Methods
RestTemplate getRestTemplate()
Returns the RestTemplate for the gateway.
void setRestTemplate(RestTemplate restTemplate)
Sets the RestTemplate for the gateway.
[Expand]
Inherited Methods
From class java.lang.Object

Fields

protected final Log logger

Logger available to subclasses

Public Constructors

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.

Public Methods

public RestTemplate getRestTemplate ()

Returns the RestTemplate for the gateway.

public void setRestTemplate (RestTemplate restTemplate)

Sets the RestTemplate for the gateway.