@Immutable public class CachingHttpClients extends java.lang.Object
CloseableHttpClient instances
capable of client-side caching.| Modifier and Type | Method and Description |
|---|---|
static CloseableHttpClient |
createFileBound(java.io.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(java.io.File cacheDir)
CloseableHttpClient instance that uses a file system
bound response cache.cacheDir - location of response cache.