Class OkHttpRestTemplateAutoConfiguration


  • @Configuration(proxyBeanMethods=false)
    @ConditionalOnClass({org.springframework.boot.web.client.RestTemplateCustomizer.class,org.springframework.web.client.RestTemplate.class})
    @AutoConfigureBefore(org.springframework.boot.autoconfigure.web.client.RestTemplateAutoConfiguration.class)
    public class OkHttpRestTemplateAutoConfiguration
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.springframework.boot.web.client.RestTemplateCustomizer okHttp3RestTemplateCustomizer​(org.springframework.http.client.OkHttp3ClientHttpRequestFactory requestFactory)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OkHttpRestTemplateAutoConfiguration

        public OkHttpRestTemplateAutoConfiguration()
    • Method Detail

      • okHttp3RestTemplateCustomizer

        @Bean
        @Order(2)
        @ConditionalOnBean(org.springframework.http.client.OkHttp3ClientHttpRequestFactory.class)
        public org.springframework.boot.web.client.RestTemplateCustomizer okHttp3RestTemplateCustomizer​(org.springframework.http.client.OkHttp3ClientHttpRequestFactory requestFactory)