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

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

Introduction

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

Prototype

public BasicHttpCache(CacheConfig config) 

Source Link

Usage

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

public CachingHttpAsyncClient(final CacheConfig config) throws IOReactorException {
    this(HttpAsyncClients.createDefault(), new BasicHttpCache(config), config);
}

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

public CachingHttpAsyncClient(final HttpAsyncClient client, final CacheConfig config) {
    this(client, new BasicHttpCache(config), config);
}

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

/**
 * Constructs a {@code CachingHttpClient} with the given caching options that
 * stores cache entries in memory and uses a vanilla {@link DefaultHttpClient}
 * for backend requests.//from   w ww.  ja  va2s. c  om
 * @param config cache module options
 */
public CachingHttpClient(CacheConfig config) {
    this(new DefaultHttpClient(), new BasicHttpCache(config), config);
}

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

/**
 * Constructs a {@code CachingHttpClient} with the given caching options that
 * stores cache entries in memory and uses the given {@link HttpClient}
 * for backend requests./*from   w ww  .  j av  a 2  s  . co m*/
 * @param config cache module options
 * @param client used to make origin requests
 */
public CachingHttpClient(HttpClient client, CacheConfig config) {
    this(client, new BasicHttpCache(config), config);
}