cacheConfig.setMaxCacheEntries(1000);
// and allow caching
final CachingHttpClient cachingClient = new CachingHttpClient(client, cacheConfig);
// Wrap again with JAR cache
final JarCacheStorage jarCache = new JarCacheStorage();
defaultHttpClient = new CachingHttpClient(cachingClient, jarCache,
jarCache.getCacheConfig());
}
return defaultHttpClient;
}
}