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