Class DiskBasedManagedHttpCacheStorage

  • All Implemented Interfaces:
    Closeable, AutoCloseable, org.apache.http.client.cache.HttpCacheStorage

    public class DiskBasedManagedHttpCacheStorage
    extends org.apache.http.impl.client.cache.ManagedHttpCacheStorage
    • Constructor Detail

      • DiskBasedManagedHttpCacheStorage

        public DiskBasedManagedHttpCacheStorage​(org.apache.http.impl.client.cache.CacheConfig cacheConfig,
                                                Path cacheDirectory)
      • DiskBasedManagedHttpCacheStorage

        public DiskBasedManagedHttpCacheStorage​(org.apache.http.impl.client.cache.CacheConfig cacheConfig,
                                                Path cacheDirectory,
                                                boolean autoCreate)
    • Method Detail

      • putEntry

        public void putEntry​(String url,
                             org.apache.http.client.cache.HttpCacheEntry entry)
                      throws IOException
        Specified by:
        putEntry in interface org.apache.http.client.cache.HttpCacheStorage
        Overrides:
        putEntry in class org.apache.http.impl.client.cache.ManagedHttpCacheStorage
        Throws:
        IOException
      • getEntry

        public org.apache.http.client.cache.HttpCacheEntry getEntry​(String url)
                                                             throws IOException
        Specified by:
        getEntry in interface org.apache.http.client.cache.HttpCacheStorage
        Overrides:
        getEntry in class org.apache.http.impl.client.cache.ManagedHttpCacheStorage
        Throws:
        IOException
      • removeEntry

        public void removeEntry​(String url)
                         throws IOException
        Specified by:
        removeEntry in interface org.apache.http.client.cache.HttpCacheStorage
        Overrides:
        removeEntry in class org.apache.http.impl.client.cache.ManagedHttpCacheStorage
        Throws:
        IOException
      • updateEntry

        public void updateEntry​(String url,
                                org.apache.http.client.cache.HttpCacheUpdateCallback callback)
                         throws IOException
        Specified by:
        updateEntry in interface org.apache.http.client.cache.HttpCacheStorage
        Overrides:
        updateEntry in class org.apache.http.impl.client.cache.ManagedHttpCacheStorage
        Throws:
        IOException