public class CachingHttpClientBuilder extends HttpClientBuilder
CloseableHttpClient
instances capable of client-side caching.Modifier | Constructor and Description |
---|---|
protected |
CachingHttpClientBuilder() |
Modifier and Type | Method and Description |
---|---|
protected Function<org.apache.hc.core5.http.protocol.HttpContext,HttpClientContext> |
contextAdaptor() |
static CachingHttpClientBuilder |
create() |
protected void |
customizeExecChain(org.apache.hc.core5.http.config.NamedElementChain<ExecChainHandler> execChainDefinition) |
CachingHttpClientBuilder |
setCacheConfig(CacheConfig cacheConfig) |
CachingHttpClientBuilder |
setCacheDir(File cacheDir) |
CachingHttpClientBuilder |
setDeleteCache(boolean deleteCache) |
CachingHttpClientBuilder |
setHttpCacheInvalidator(HttpCacheInvalidator cacheInvalidator)
Deprecated.
Do not use.
|
CachingHttpClientBuilder |
setHttpCacheStorage(HttpCacheStorage storage) |
CachingHttpClientBuilder |
setResourceFactory(ResourceFactory resourceFactory) |
CachingHttpClientBuilder |
setSchedulingStrategy(SchedulingStrategy schedulingStrategy) |
addCloseable, addExecInterceptorAfter, addExecInterceptorBefore, addExecInterceptorFirst, addExecInterceptorLast, addRequestInterceptorFirst, addRequestInterceptorLast, addResponseInterceptorFirst, addResponseInterceptorLast, build, disableAuthCaching, disableAutomaticRetries, disableConnectionState, disableContentCompression, disableCookieManagement, disableDefaultUserAgent, disableRedirectHandling, evictExpiredConnections, evictIdleConnections, replaceExecInterceptor, setBackoffManager, setConnectionBackoffStrategy, setConnectionManager, setConnectionManagerShared, setConnectionReuseStrategy, setContentDecoderRegistry, setDefaultAuthSchemeRegistry, setDefaultCookieSpecRegistry, setDefaultCookieStore, setDefaultCredentialsProvider, setDefaultHeaders, setDefaultRequestConfig, setKeepAliveStrategy, setProxy, setProxyAuthenticationStrategy, setProxySelector, setRedirectStrategy, setRequestExecutor, setRetryStrategy, setRoutePlanner, setSchemePortResolver, 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 setSchedulingStrategy(SchedulingStrategy schedulingStrategy)
public final CachingHttpClientBuilder setCacheConfig(CacheConfig cacheConfig)
@Deprecated public final CachingHttpClientBuilder setHttpCacheInvalidator(HttpCacheInvalidator cacheInvalidator)
public final CachingHttpClientBuilder setDeleteCache(boolean deleteCache)
protected void customizeExecChain(org.apache.hc.core5.http.config.NamedElementChain<ExecChainHandler> execChainDefinition)
customizeExecChain
in class HttpClientBuilder
protected Function<org.apache.hc.core5.http.protocol.HttpContext,HttpClientContext> contextAdaptor()
contextAdaptor
in class HttpClientBuilder
Copyright © 2010–2021 The Apache Software Foundation. All rights reserved.