Package io.freefair.spring.okhttp
Class OkHttp3AutoConfiguration
- java.lang.Object
-
- io.freefair.spring.okhttp.OkHttp3AutoConfiguration
-
@Configuration @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 okhttp3.Cache
okhttp3Cache()
okhttp3.OkHttpClient
okHttp3Client(Optional<okhttp3.Cache> cache, Optional<okhttp3.CookieJar> cookieJar, Optional<okhttp3.Dns> dns, okhttp3.ConnectionPool connectionPool)
okhttp3.ConnectionPool
okHttp3ConnectionPool()
-
-
-
Method Detail
-
okHttp3Client
@Bean @ConditionalOnMissingBean public okhttp3.OkHttpClient okHttp3Client(@Autowired Optional<okhttp3.Cache> cache, @Autowired Optional<okhttp3.CookieJar> cookieJar, @Autowired Optional<okhttp3.Dns> dns, okhttp3.ConnectionPool connectionPool)
-
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
-
-