|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.http.impl.client.cache.BasicHttpCache
@ThreadSafe public class BasicHttpCache
Implements HttpCache using LinkedHashMap for backing store
| Constructor Summary | |
|---|---|
BasicHttpCache(int maxEntries)
|
|
| Method Summary | |
|---|---|
CacheEntry |
getEntry(String url)
Gets an entry from the cache, if it exists |
void |
putEntry(String url,
CacheEntry entry)
Places a CacheEntry in the cache |
void |
removeEntry(String url)
Removes a CacheEntry from the cache |
void |
updateCacheEntry(String url,
HttpCacheUpdateCallback<CacheEntry> callback)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BasicHttpCache(int maxEntries)
| Method Detail |
|---|
public void putEntry(String url,
CacheEntry entry)
putEntry in interface HttpCache<CacheEntry>url - Url to use as the cache keyentry - CacheEntry to place in the cachepublic CacheEntry getEntry(String url)
getEntry in interface HttpCache<CacheEntry>url - Url that is the cache key
public void removeEntry(String url)
removeEntry in interface HttpCache<CacheEntry>url - Url that is the cache key
public void updateCacheEntry(String url,
HttpCacheUpdateCallback<CacheEntry> callback)
throws HttpCacheOperationException
updateCacheEntry in interface HttpCache<CacheEntry>HttpCacheOperationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||