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)
    @AutoConfigureAfter(org.springframework.boot.autoconfigure.http.HttpMessageConvertersAutoConfiguration.class)
    @Conditional(io.freefair.spring.okhttp.OkHttpRestTemplateAutoConfiguration.NotReactiveWebApplicationCondition.class)
    public class OkHttpRestTemplateAutoConfiguration
    extends Object
    See Also:
    RestTemplateAutoConfiguration
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.springframework.boot.web.client.RestTemplateBuilder restTemplateBuilder​(org.springframework.beans.factory.ObjectProvider<org.springframework.boot.autoconfigure.http.HttpMessageConverters> messageConverters, org.springframework.beans.factory.ObjectProvider<org.springframework.boot.web.client.RestTemplateCustomizer> restTemplateCustomizers, org.springframework.beans.factory.ObjectProvider<org.springframework.boot.web.client.RestTemplateRequestCustomizer<?>> restTemplateRequestCustomizers, okhttp3.OkHttpClient okHttpClient)  
    • Constructor Detail

      • OkHttpRestTemplateAutoConfiguration

        public OkHttpRestTemplateAutoConfiguration()
    • Method Detail

      • restTemplateBuilder

        @Bean
        @ConditionalOnMissingBean
        public org.springframework.boot.web.client.RestTemplateBuilder restTemplateBuilder​(org.springframework.beans.factory.ObjectProvider<org.springframework.boot.autoconfigure.http.HttpMessageConverters> messageConverters,
                                                                                           org.springframework.beans.factory.ObjectProvider<org.springframework.boot.web.client.RestTemplateCustomizer> restTemplateCustomizers,
                                                                                           org.springframework.beans.factory.ObjectProvider<org.springframework.boot.web.client.RestTemplateRequestCustomizer<?>> restTemplateRequestCustomizers,
                                                                                           okhttp3.OkHttpClient okHttpClient)