Package io.freefair.spring.okhttp
Class OkHttp3AutoConfiguration
- java.lang.Object
-
- io.freefair.spring.okhttp.OkHttp3AutoConfiguration
-
@Configuration(proxyBeanMethods=false) @ConditionalOnClass(okhttp3.OkHttpClient.class) @EnableConfigurationProperties(OkHttpProperties.class) public class OkHttp3AutoConfiguration extends Object
-
-
Constructor Summary
Constructors Constructor Description OkHttp3AutoConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Cache
okHttp3Cache()
OkHttpClient
okHttp3Client(ObjectProvider<Cache> cache, ObjectProvider<CookieJar> cookieJar, ObjectProvider<Dns> dns, ConnectionPool connectionPool)
ConnectionPool
okHttp3ConnectionPool()
-
-
-
Method Detail
-
okHttp3Client
@Bean @ConditionalOnMissingBean public OkHttpClient okHttp3Client(ObjectProvider<Cache> cache, ObjectProvider<CookieJar> cookieJar, ObjectProvider<Dns> dns, ConnectionPool connectionPool)
-
okHttp3ConnectionPool
@Bean @ConditionalOnMissingBean public ConnectionPool okHttp3ConnectionPool()
-
okHttp3Cache
@Bean @ConditionalOnMissingBean @ConditionalOnProperty(value="okhttp.cache.enabled", havingValue="true", matchIfMissing=true) public Cache okHttp3Cache() throws IOException
- Throws:
IOException
-
-