public final class FlushableHttpCacheStorageImpl extends Object implements FlushableHttpCacheStorage
BasicHttpCacheStorage v4.1.2
Have added ability to flush cache
| Constructor and Description |
|---|
FlushableHttpCacheStorageImpl(org.apache.http.impl.client.cache.CacheConfig config) |
| Modifier and Type | Method and Description |
|---|---|
void |
flushByUriPattern(Pattern urlPattern) |
org.apache.http.client.cache.HttpCacheEntry |
getEntry(String url)
Gets an entry from the cache, if it exists
|
void |
putEntry(String url,
org.apache.http.client.cache.HttpCacheEntry entry)
Places a HttpCacheEntry in the cache
|
void |
removeEntry(String url)
Removes a HttpCacheEntry from the cache
|
void |
updateEntry(String url,
org.apache.http.client.cache.HttpCacheUpdateCallback callback) |
public FlushableHttpCacheStorageImpl(org.apache.http.impl.client.cache.CacheConfig config)
public void flushByUriPattern(Pattern urlPattern)
flushByUriPattern in interface FlushableHttpCacheStoragepublic void putEntry(String url, org.apache.http.client.cache.HttpCacheEntry entry) throws IOException
putEntry in interface org.apache.http.client.cache.HttpCacheStorageurl - Url to use as the cache keyentry - HttpCacheEntry to place in the cacheIOExceptionpublic org.apache.http.client.cache.HttpCacheEntry getEntry(String url)
getEntry in interface org.apache.http.client.cache.HttpCacheStorageurl - Url that is the cache keypublic void removeEntry(String url) throws IOException
removeEntry in interface org.apache.http.client.cache.HttpCacheStorageurl - Url that is the cache keyIOExceptionpublic void updateEntry(String url, org.apache.http.client.cache.HttpCacheUpdateCallback callback) throws IOException
updateEntry in interface org.apache.http.client.cache.HttpCacheStorageIOExceptionCopyright © 2012–2018 Atlassian. All rights reserved.