Class CachingHttpClients


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

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.apache.http.impl.client.CloseableHttpClient createFileBound​(java.io.File cacheDir)
      Creates CloseableHttpClient instance that uses a file system bound response cache.
      static org.apache.http.impl.client.CloseableHttpClient createMemoryBound()
      Creates CloseableHttpClient instance that uses a memory bound response cache.
      static CachingHttpClientBuilder custom()
      Creates builder object for construction of custom CloseableHttpClient instances.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • 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​(java.io.File cacheDir)
        Creates CloseableHttpClient instance that uses a file system bound response cache.
        Parameters:
        cacheDir - location of response cache.