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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
okHttp3Client
(org.springframework.beans.factory.ObjectProvider<Cache> cache, org.springframework.beans.factory.ObjectProvider<CookieJar> cookieJar, org.springframework.beans.factory.ObjectProvider<Dns> dns, org.springframework.beans.factory.ObjectProvider<HostnameVerifier> hostnameVerifier, org.springframework.beans.factory.ObjectProvider<CertificatePinner> certificatePinner, ConnectionPool connectionPool, org.springframework.beans.factory.ObjectProvider<EventListener> eventListener)
-
Constructor Details
-
OkHttp3AutoConfiguration
public OkHttp3AutoConfiguration()
-
-
Method Details
-
okHttp3Client
@Bean @ConditionalOnMissingBean public OkHttpClient okHttp3Client(org.springframework.beans.factory.ObjectProvider<Cache> cache, org.springframework.beans.factory.ObjectProvider<CookieJar> cookieJar, org.springframework.beans.factory.ObjectProvider<Dns> dns, org.springframework.beans.factory.ObjectProvider<HostnameVerifier> hostnameVerifier, org.springframework.beans.factory.ObjectProvider<CertificatePinner> certificatePinner, ConnectionPool connectionPool, org.springframework.beans.factory.ObjectProvider<EventListener> eventListener) -
okHttp3ConnectionPool
-
okHttp3Cache
@Bean @ConditionalOnMissingBean @ConditionalOnProperty(value="okhttp.cache.enabled", havingValue="true", matchIfMissing=true) public Cache okHttp3Cache() throws IOException- Throws:
IOException
-
deleteTempCache
-