public final class CachingHttpClients extends Object
CloseableHttpClient
instances
capable of client-side caching.Modifier and Type | Method and Description |
---|---|
static CloseableHttpClient |
createFileBound(File cacheDir)
Creates
CloseableHttpClient instance that uses a file system
bound response cache. |
static CloseableHttpClient |
createMemoryBound()
Creates
CloseableHttpClient instance that uses a memory bound
response cache. |
static CachingHttpClientBuilder |
custom()
Creates builder object for construction of custom
CloseableHttpClient instances. |
public static CachingHttpClientBuilder custom()
CloseableHttpClient
instances.public static CloseableHttpClient createMemoryBound()
CloseableHttpClient
instance that uses a memory bound
response cache.public static CloseableHttpClient createFileBound(File cacheDir)
CloseableHttpClient
instance that uses a file system
bound response cache.cacheDir
- location of response cache.Copyright © 2010–2021 The Apache Software Foundation. All rights reserved.