org.apache.http.impl.client.cache.BasicHttpCacheStorage Java Examples
The following examples show how to use
org.apache.http.impl.client.cache.BasicHttpCacheStorage.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: KeySetRetriever.java From deprecated-security-advanced-modules with Apache License 2.0 | 5 votes |
KeySetRetriever(String openIdConnectEndpoint, SSLConfig sslConfig, boolean useCacheForOidConnectEndpoint) { this.openIdConnectEndpoint = openIdConnectEndpoint; this.sslConfig = sslConfig; if (useCacheForOidConnectEndpoint) { cacheConfig = CacheConfig.custom().setMaxCacheEntries(10).setMaxObjectSize(1024L * 1024L).build(); oidcHttpCacheStorage = new BasicHttpCacheStorage(cacheConfig); } }
Example #2
Source File: CachingTest.java From riptide with MIT License | 4 votes |
@Bean public HttpCacheStorage publicHttpCacheStorage() { return new BasicHttpCacheStorage(CacheConfig.DEFAULT); }
Example #3
Source File: BasicCacheStorage.java From esigate with Apache License 2.0 | 4 votes |
@Override public void init(Properties properties) { CacheConfig cacheConfig = CacheConfigHelper.createCacheConfig(properties); setImpl(new BasicHttpCacheStorage(cacheConfig)); }