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

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

Introduction

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

Prototype

CachedHttpResponseGenerator() 

Source Link

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);
}