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  CloseableHttpClientinstance that uses a file system
 bound response cache. | 
| static CloseableHttpClient | createMemoryBound()Creates  CloseableHttpClientinstance that uses a memory bound
 response cache. | 
| static CachingHttpClientBuilder | custom()Creates builder object for construction of custom
  CloseableHttpClientinstances. | 
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 © 1999–2021 The Apache Software Foundation. All rights reserved.