Class CachingHttpClients
java.lang.Object
org.apache.http.impl.client.cache.CachingHttpClients
Factory methods for
CloseableHttpClient
instances
capable of client-side caching.- Since:
- 4.3
-
Method Summary
Modifier and TypeMethodDescriptionstatic CloseableHttpClient
createFileBound
(File cacheDir) CreatesCloseableHttpClient
instance that uses a file system bound response cache.static CloseableHttpClient
CreatesCloseableHttpClient
instance that uses a memory bound response cache.static CachingHttpClientBuilder
custom()
Creates builder object for construction of customCloseableHttpClient
instances.
-
Method Details
-
custom
Creates builder object for construction of customCloseableHttpClient
instances. -
createMemoryBound
CreatesCloseableHttpClient
instance that uses a memory bound response cache. -
createFileBound
CreatesCloseableHttpClient
instance that uses a file system bound response cache.- Parameters:
cacheDir
- location of response cache.
-