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 Details

    • AbstractRestTemplateCreator

      public AbstractRestTemplateCreator()
  • Method Details

    • 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 interface IntegrationRestTemplateCreator
      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 List<org.springframework.http.converter.HttpMessageConverter<Object>> getMessageConverters()
    • setMessageConverters

      public void setMessageConverters(List<org.springframework.http.converter.HttpMessageConverter<Object>> messageConverters)
    • 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

      public void setCache(RestTemplateCache cache)
    • getCache

      protected RestTemplateCache getCache()