Class CachingHttpClients
java.lang.Object
org.apache.http.impl.client.cache.CachingHttpClients
Factory methods for
CloseableHttpClient instances
capable of client-side caching.- Since:
- 4.3
-
Method Summary
Modifier and TypeMethodDescriptionstatic CloseableHttpClientcreateFileBound(File cacheDir) CreatesCloseableHttpClientinstance that uses a file system bound response cache.static CloseableHttpClientCreatesCloseableHttpClientinstance that uses a memory bound response cache.static CachingHttpClientBuildercustom()Creates builder object for construction of customCloseableHttpClientinstances.
-
Method Details
-
custom
Creates builder object for construction of customCloseableHttpClientinstances. -
createMemoryBound
CreatesCloseableHttpClientinstance that uses a memory bound response cache. -
createFileBound
CreatesCloseableHttpClientinstance that uses a file system bound response cache.- Parameters:
cacheDir- location of response cache.
-