Package org.apache.http.impl.client.cache.ehcache

Examples of org.apache.http.impl.client.cache.ehcache.EhcacheHttpCacheStorage


                CacheConfig cacheConfig = new CacheConfig();
                // FIXME: Hardcoded constants - is this useful?
                cacheConfig.setMaxCacheEntries(1000);
                cacheConfig.setMaxObjectSize(81920);

                final HttpCacheStorage cacheStore = new EhcacheHttpCacheStorage(ehcache.get(), cacheConfig);

                this.httpClient = new MonitoredHttpClient(new CachingHttpClient(hc, cacheStore, cacheConfig));
            } else {
                this.httpClient = new MonitoredHttpClient(hc);
            }
View Full Code Here

TOP

Related Classes of org.apache.http.impl.client.cache.ehcache.EhcacheHttpCacheStorage

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.