Class CachingHttpClients

java.lang.Object
org.apache.http.impl.client.cache.CachingHttpClients

public class CachingHttpClients extends Object
Factory methods for CloseableHttpClient instances capable of client-side caching.
Since:
4.3
  • Method Details

    • custom

      public static CachingHttpClientBuilder custom()
      Creates builder object for construction of custom CloseableHttpClient instances.
    • createMemoryBound

      public static org.apache.http.impl.client.CloseableHttpClient createMemoryBound()
      Creates CloseableHttpClient instance that uses a memory bound response cache.
    • createFileBound

      public static org.apache.http.impl.client.CloseableHttpClient createFileBound(File cacheDir)
      Creates CloseableHttpClient instance that uses a file system bound response cache.
      Parameters:
      cacheDir - location of response cache.