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