Example usage for org.apache.http.impl.client.cache CacheInvalidator CacheInvalidator

List of usage examples for org.apache.http.impl.client.cache CacheInvalidator CacheInvalidator

Introduction

In this page you can find the example usage for org.apache.http.impl.client.cache CacheInvalidator CacheInvalidator.

Prototype

public CacheInvalidator(final CacheKeyGenerator uriExtractor, final HttpCacheStorage storage) 

Source Link

Document

Create a new CacheInvalidator for a given HttpCache and CacheKeyGenerator .

Usage

From source file:org.apache.http.impl.client.cache.BasicHttpCache.java

public BasicHttpCache(ResourceFactory resourceFactory, HttpCacheStorage storage, CacheConfig config) {
    this.resourceFactory = resourceFactory;
    this.uriExtractor = new CacheKeyGenerator();
    this.cacheEntryUpdater = new CacheEntryUpdater(resourceFactory);
    this.maxObjectSizeBytes = config.getMaxObjectSizeBytes();
    this.responseGenerator = new CachedHttpResponseGenerator();
    this.storage = storage;
    this.cacheInvalidator = new CacheInvalidator(this.uriExtractor, this.storage);
}