public class CachingHttpClientBuilder extends HttpClientBuilder
CloseableHttpClient
instances capable of client-side caching.Modifier | Constructor and Description |
---|---|
protected |
CachingHttpClientBuilder() |
Modifier and Type | Method and Description |
---|---|
static CachingHttpClientBuilder |
create() |
protected ClientExecChain |
decorateMainExec(ClientExecChain mainExec) |
CachingHttpClientBuilder |
setCacheConfig(CacheConfig cacheConfig) |
CachingHttpClientBuilder |
setCacheDir(File cacheDir) |
CachingHttpClientBuilder |
setDeleteCache(boolean deleteCache) |
CachingHttpClientBuilder |
setHttpCacheInvalidator(HttpCacheInvalidator cacheInvalidator) |
CachingHttpClientBuilder |
setHttpCacheStorage(HttpCacheStorage storage) |
CachingHttpClientBuilder |
setResourceFactory(ResourceFactory resourceFactory) |
CachingHttpClientBuilder |
setSchedulingStrategy(SchedulingStrategy schedulingStrategy) |
addCloseable, addInterceptorFirst, addInterceptorFirst, addInterceptorLast, addInterceptorLast, build, createMainExec, decorateProtocolExec, disableAuthCaching, disableAutomaticRetries, disableConnectionState, disableContentCompression, disableCookieManagement, disableDefaultUserAgent, disableRedirectHandling, evictExpiredConnections, evictIdleConnections, evictIdleConnections, setBackoffManager, setConnectionBackoffStrategy, setConnectionManager, setConnectionManagerShared, setConnectionReuseStrategy, setConnectionTimeToLive, setContentDecoderRegistry, setDefaultAuthSchemeRegistry, setDefaultConnectionConfig, setDefaultCookieSpecRegistry, setDefaultCookieStore, setDefaultCredentialsProvider, setDefaultHeaders, setDefaultRequestConfig, setDefaultSocketConfig, setDnsResolver, setHostnameVerifier, setHttpProcessor, setKeepAliveStrategy, setMaxConnPerRoute, setMaxConnTotal, setProxy, setProxyAuthenticationStrategy, setPublicSuffixMatcher, setRedirectStrategy, setRequestExecutor, setRetryHandler, setRoutePlanner, setSchemePortResolver, setServiceUnavailableRetryStrategy, setSslcontext, setSSLContext, setSSLHostnameVerifier, setSSLSocketFactory, setTargetAuthenticationStrategy, setUserAgent, setUserTokenHandler, useSystemProperties
public static CachingHttpClientBuilder create()
public final CachingHttpClientBuilder setResourceFactory(ResourceFactory resourceFactory)
public final CachingHttpClientBuilder setHttpCacheStorage(HttpCacheStorage storage)
public final CachingHttpClientBuilder setCacheDir(File cacheDir)
public final CachingHttpClientBuilder setCacheConfig(CacheConfig cacheConfig)
public final CachingHttpClientBuilder setSchedulingStrategy(SchedulingStrategy schedulingStrategy)
public final CachingHttpClientBuilder setHttpCacheInvalidator(HttpCacheInvalidator cacheInvalidator)
public CachingHttpClientBuilder setDeleteCache(boolean deleteCache)
protected ClientExecChain decorateMainExec(ClientExecChain mainExec)
decorateMainExec
in class HttpClientBuilder
Copyright © 2010–2022 The Apache Software Foundation. All rights reserved.