Class OkHttp3AutoConfiguration

java.lang.Object
io.freefair.spring.okhttp.autoconfigure.OkHttp3AutoConfiguration

@AutoConfiguration @ConditionalOnClass(okhttp3.OkHttpClient.class) @EnableConfigurationProperties(OkHttpProperties.class) public class OkHttp3AutoConfiguration extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    okhttp3.Cache
     
    okhttp3.OkHttpClient
    okHttp3Client(org.springframework.beans.factory.ObjectProvider<okhttp3.Cache> cache, org.springframework.beans.factory.ObjectProvider<okhttp3.CookieJar> cookieJar, org.springframework.beans.factory.ObjectProvider<okhttp3.Dns> dns, org.springframework.beans.factory.ObjectProvider<HostnameVerifier> hostnameVerifier, org.springframework.beans.factory.ObjectProvider<okhttp3.CertificatePinner> certificatePinner, okhttp3.ConnectionPool connectionPool, org.springframework.beans.factory.ObjectProvider<okhttp3.EventListener> eventListener)
     
    okhttp3.ConnectionPool
     

    Methods inherited from class java.lang.Object

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

  • Method Details

    • okHttp3Client

      @Bean @ConditionalOnMissingBean public okhttp3.OkHttpClient okHttp3Client(org.springframework.beans.factory.ObjectProvider<okhttp3.Cache> cache, org.springframework.beans.factory.ObjectProvider<okhttp3.CookieJar> cookieJar, org.springframework.beans.factory.ObjectProvider<okhttp3.Dns> dns, org.springframework.beans.factory.ObjectProvider<HostnameVerifier> hostnameVerifier, org.springframework.beans.factory.ObjectProvider<okhttp3.CertificatePinner> certificatePinner, okhttp3.ConnectionPool connectionPool, org.springframework.beans.factory.ObjectProvider<okhttp3.EventListener> eventListener)
    • okHttp3ConnectionPool

      @Bean @ConditionalOnMissingBean public okhttp3.ConnectionPool okHttp3ConnectionPool()
    • okHttp3Cache

      @Bean @ConditionalOnMissingBean @ConditionalOnProperty(value="okhttp.cache.enabled", havingValue="true", matchIfMissing=true) public okhttp3.Cache okHttp3Cache() throws IOException
      Throws:
      IOException
    • deleteTempCache

      @PreDestroy public void deleteTempCache()