Class AbstractRestTemplateCreator
- java.lang.Object
-
- de.hybris.platform.outboundservices.client.impl.AbstractRestTemplateCreator
-
- All Implemented Interfaces:
IntegrationRestTemplateCreator
- Direct Known Subclasses:
DefaultIntegrationBasicRestTemplateCreator
,DefaultIntegrationOAuth2RestTemplateCreator
public abstract class AbstractRestTemplateCreator extends java.lang.Object implements IntegrationRestTemplateCreator
The abstract RestTemplate creator.
-
-
Constructor Summary
Constructors Constructor Description AbstractRestTemplateCreator()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
addInterceptors(org.springframework.web.client.RestTemplate template, org.springframework.http.client.ClientHttpRequestInterceptor... interceptors)
protected void
addMessageConverters(org.springframework.web.client.RestTemplate template, org.springframework.http.converter.HttpMessageConverter<?>... converters)
org.springframework.web.client.RestOperations
create(ConsumedDestinationModel destination)
Create a rest template by given consumed destination model.protected DestinationRestTemplateCacheKey
createDestinationRestTemplateCacheKey(ConsumedDestinationModel destination)
protected abstract org.springframework.web.client.RestTemplate
createRestTemplate(ConsumedDestinationModel destination)
protected RestTemplateCache
getCache()
protected org.springframework.http.client.ClientHttpRequestFactory
getClientHttpRequestFactory()
protected abstract DestinationRestTemplateId
getDestinationRestTemplateId(ConsumedDestinationModel destinationModel)
protected java.util.List<org.springframework.http.converter.HttpMessageConverter<java.lang.Object>>
getMessageConverters()
protected java.util.List<org.springframework.http.client.ClientHttpRequestInterceptor>
getRequestInterceptors()
void
setCache(RestTemplateCache cache)
void
setClientHttpRequestFactory(org.springframework.http.client.ClientHttpRequestFactory clientHttpRequestFactory)
void
setMessageConverters(java.util.List<org.springframework.http.converter.HttpMessageConverter<java.lang.Object>> messageConverters)
void
setRequestInterceptors(java.util.List<org.springframework.http.client.ClientHttpRequestInterceptor> requestInterceptors)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.hybris.platform.outboundservices.client.IntegrationRestTemplateCreator
isApplicable
-
-
-
-
Method Detail
-
create
public org.springframework.web.client.RestOperations create(ConsumedDestinationModel destination)
Description copied from interface:IntegrationRestTemplateCreator
Create a rest template by given consumed destination model.- Specified by:
create
in interfaceIntegrationRestTemplateCreator
- Parameters:
destination
- consumed destination model- Returns:
- restTemplate
-
createRestTemplate
protected abstract org.springframework.web.client.RestTemplate createRestTemplate(ConsumedDestinationModel destination)
-
createDestinationRestTemplateCacheKey
protected DestinationRestTemplateCacheKey createDestinationRestTemplateCacheKey(ConsumedDestinationModel destination)
-
getDestinationRestTemplateId
protected abstract DestinationRestTemplateId getDestinationRestTemplateId(ConsumedDestinationModel destinationModel)
-
addInterceptors
protected void addInterceptors(org.springframework.web.client.RestTemplate template, org.springframework.http.client.ClientHttpRequestInterceptor... interceptors)
-
addMessageConverters
protected void addMessageConverters(org.springframework.web.client.RestTemplate template, org.springframework.http.converter.HttpMessageConverter<?>... converters)
-
getMessageConverters
protected java.util.List<org.springframework.http.converter.HttpMessageConverter<java.lang.Object>> getMessageConverters()
-
setMessageConverters
public void setMessageConverters(java.util.List<org.springframework.http.converter.HttpMessageConverter<java.lang.Object>> messageConverters)
-
getRequestInterceptors
protected java.util.List<org.springframework.http.client.ClientHttpRequestInterceptor> getRequestInterceptors()
-
setRequestInterceptors
public void setRequestInterceptors(java.util.List<org.springframework.http.client.ClientHttpRequestInterceptor> requestInterceptors)
-
setClientHttpRequestFactory
public void setClientHttpRequestFactory(org.springframework.http.client.ClientHttpRequestFactory clientHttpRequestFactory)
-
getClientHttpRequestFactory
protected org.springframework.http.client.ClientHttpRequestFactory getClientHttpRequestFactory()
-
setCache
public void setCache(RestTemplateCache cache)
-
getCache
protected RestTemplateCache getCache()
-
-