Spring for Android

org.springframework.web.client.support
Class RestGatewaySupport

java.lang.Object
  extended by org.springframework.web.client.support.RestGatewaySupport

public class RestGatewaySupport
extends java.lang.Object

Convenient super class for application classes that need REST access.

Requires a ClientHttpRequestFactory or a RestTemplate instance to be set.

Since:
1.0
Author:
Arjen Poutsma, Roy Clarkson
See Also:
setRestTemplate(org.springframework.web.client.RestTemplate), RestTemplate

Constructor Summary
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.
 
Method Summary
 RestTemplate getRestTemplate()
          Returns the RestTemplate for the gateway.
 void setRestTemplate(RestTemplate restTemplate)
          Sets the RestTemplate for the gateway.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RestGatewaySupport

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


RestGatewaySupport

public RestGatewaySupport(ClientHttpRequestFactory requestFactory)
Construct a new instance of the RestGatewaySupport, with the given ClientHttpRequestFactory.

See Also:
RestTemplate.RestTemplate(ClientHttpRequestFactory)
Method Detail

setRestTemplate

public void setRestTemplate(RestTemplate restTemplate)
Sets the RestTemplate for the gateway.


getRestTemplate

public RestTemplate getRestTemplate()
Returns the RestTemplate for the gateway.


Spring for Android