Class AbstractRestTemplateCreator
java.lang.Object
de.hybris.platform.outboundservices.client.impl.AbstractRestTemplateCreator
- All Implemented Interfaces:
IntegrationRestTemplateCreator
- Direct Known Subclasses:
DefaultIntegrationBasicRestTemplateCreator,DefaultIntegrationNoCredentialRestTemplateCreator,DefaultIntegrationOAuth2RestTemplateCreator
public abstract class AbstractRestTemplateCreator
extends Object
implements IntegrationRestTemplateCreator
The abstract RestTemplate creator.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddInterceptors(org.springframework.web.client.RestTemplate template, org.springframework.http.client.ClientHttpRequestInterceptor... interceptors) protected voidaddMessageConverters(org.springframework.web.client.RestTemplate template, org.springframework.http.converter.HttpMessageConverter<?>... converters) org.springframework.web.client.RestOperationscreate(ConsumedDestinationModel destination) Create a rest template by given consumed destination model.protected DestinationRestTemplateCacheKeyprotected abstract org.springframework.web.client.RestTemplatecreateRestTemplate(ConsumedDestinationModel destination) protected RestTemplateCachegetCache()protected org.springframework.http.client.ClientHttpRequestFactoryprotected abstract DestinationRestTemplateIdgetDestinationRestTemplateId(ConsumedDestinationModel destinationModel) protected List<org.springframework.http.client.ClientHttpRequestInterceptor>voidsetCache(RestTemplateCache cache) voidsetClientHttpRequestFactory(org.springframework.http.client.ClientHttpRequestFactory clientHttpRequestFactory) voidsetMessageConverters(List<org.springframework.http.converter.HttpMessageConverter<Object>> messageConverters) voidsetRequestInterceptors(List<org.springframework.http.client.ClientHttpRequestInterceptor> requestInterceptors) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.outboundservices.client.IntegrationRestTemplateCreator
isApplicable
-
Constructor Details
-
AbstractRestTemplateCreator
public AbstractRestTemplateCreator()
-
-
Method Details
-
create
Description copied from interface:IntegrationRestTemplateCreatorCreate a rest template by given consumed destination model.- Specified by:
createin 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
-
setMessageConverters
-
getRequestInterceptors
protected List<org.springframework.http.client.ClientHttpRequestInterceptor> getRequestInterceptors() -
setRequestInterceptors
public void setRequestInterceptors(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
-
getCache
-