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)
For internal use.
|
CachingHttpClientBuilder |
setCacheConfig(CacheConfig cacheConfig) |
CachingHttpClientBuilder |
setCacheDir(File cacheDir) |
CachingHttpClientBuilder |
setHttpCacheInvalidator(HttpCacheInvalidator cacheInvalidator) |
CachingHttpClientBuilder |
setHttpCacheStorage(HttpCacheStorage storage) |
CachingHttpClientBuilder |
setResourceFactory(ResourceFactory resourceFactory) |
CachingHttpClientBuilder |
setSchedulingStrategy(SchedulingStrategy schedulingStrategy) |
addCloseable, addInterceptorFirst, addInterceptorFirst, addInterceptorLast, addInterceptorLast, build, decorateProtocolExec, disableAuthCaching, disableAutomaticRetries, disableConnectionState, disableContentCompression, disableCookieManagement, disableRedirectHandling, setBackoffManager, setConnectionBackoffStrategy, setConnectionManager, setConnectionReuseStrategy, setDefaultAuthSchemeRegistry, setDefaultConnectionConfig, setDefaultCookieSpecRegistry, setDefaultCookieStore, setDefaultCredentialsProvider, setDefaultHeaders, setDefaultRequestConfig, setDefaultSocketConfig, setHostnameVerifier, setHttpProcessor, setKeepAliveStrategy, setMaxConnPerRoute, setMaxConnTotal, setProxy, setProxyAuthenticationStrategy, setRedirectStrategy, setRequestExecutor, setRetryHandler, setRoutePlanner, setSchemePortResolver, setServiceUnavailableRetryStrategy, setSslcontext, 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)
protected ClientExecChain decorateMainExec(ClientExecChain mainExec)
HttpClientBuilder
decorateMainExec
in class HttpClientBuilder
Copyright © 1999–2013 The Apache Software Foundation. All rights reserved.