Class CachingHttpClients
- java.lang.Object
-
- org.apache.http.impl.client.cache.CachingHttpClients
-
public class CachingHttpClients extends java.lang.Object
Factory methods forCloseableHttpClient
instances capable of client-side caching.- Since:
- 4.3
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CloseableHttpClient
createFileBound(java.io.File cacheDir)
CreatesCloseableHttpClient
instance that uses a file system bound response cache.static CloseableHttpClient
createMemoryBound()
CreatesCloseableHttpClient
instance that uses a memory bound response cache.static CachingHttpClientBuilder
custom()
Creates builder object for construction of customCloseableHttpClient
instances.
-
-
-
Method Detail
-
custom
public static CachingHttpClientBuilder custom()
Creates builder object for construction of customCloseableHttpClient
instances.
-
createMemoryBound
public static CloseableHttpClient createMemoryBound()
CreatesCloseableHttpClient
instance that uses a memory bound response cache.
-
createFileBound
public static CloseableHttpClient createFileBound(java.io.File cacheDir)
CreatesCloseableHttpClient
instance that uses a file system bound response cache.- Parameters:
cacheDir
- location of response cache.
-
-