Package io.freefair.spring.okhttp
Class OkHttp3AutoConfiguration
java.lang.Object
io.freefair.spring.okhttp.OkHttp3AutoConfiguration
@AutoConfiguration
@ConditionalOnClass(okhttp3.OkHttpClient.class)
@EnableConfigurationProperties(OkHttpProperties.class)
public class OkHttp3AutoConfiguration
extends Object
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionokhttp3.Cache
okhttp3.OkHttpClient
okHttp3Client
(ObjectProvider<okhttp3.Cache> cache, ObjectProvider<okhttp3.CookieJar> cookieJar, ObjectProvider<okhttp3.Dns> dns, ObjectProvider<HostnameVerifier> hostnameVerifier, ObjectProvider<okhttp3.CertificatePinner> certificatePinner, okhttp3.ConnectionPool connectionPool, ObjectProvider<okhttp3.EventListener> eventListener) okhttp3.ConnectionPool
-
Constructor Details
-
OkHttp3AutoConfiguration
public OkHttp3AutoConfiguration()
-
-
Method Details
-
okHttp3Client
@Bean @ConditionalOnMissingBean public okhttp3.OkHttpClient okHttp3Client(ObjectProvider<okhttp3.Cache> cache, ObjectProvider<okhttp3.CookieJar> cookieJar, ObjectProvider<okhttp3.Dns> dns, ObjectProvider<HostnameVerifier> hostnameVerifier, ObjectProvider<okhttp3.CertificatePinner> certificatePinner, okhttp3.ConnectionPool connectionPool, ObjectProvider<okhttp3.EventListener> eventListener) -
okHttp3ConnectionPool
-
okHttp3Cache
@Bean @ConditionalOnMissingBean @ConditionalOnProperty(value="okhttp.cache.enabled", havingValue="true", matchIfMissing=true) public okhttp3.Cache okHttp3Cache() throws IOException- Throws:
IOException
-