|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.http.impl.client.cache.BasicHttpCacheStorage
@ThreadSafe public class BasicHttpCacheStorage
Basic HttpCacheStorage
implementation backed by an instance of LinkedHashMap
.
This cache does NOT deallocate resources associated with the cache entries. It is intended
for use with HeapResource
and similar.
Constructor Summary | |
---|---|
BasicHttpCacheStorage(CacheConfig config)
|
Method Summary | |
---|---|
HttpCacheEntry |
getEntry(String url)
Gets an entry from the cache, if it exists |
void |
putEntry(String url,
HttpCacheEntry entry)
Places a HttpCacheEntry in the cache |
void |
removeEntry(String url)
Removes a HttpCacheEntry from the cache |
void |
updateEntry(String url,
HttpCacheUpdateCallback callback)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BasicHttpCacheStorage(CacheConfig config)
Method Detail |
---|
public void putEntry(String url, HttpCacheEntry entry) throws IOException
putEntry
in interface HttpCacheStorage
url
- Url to use as the cache keyentry
- HttpCacheEntry to place in the cache
IOException
public HttpCacheEntry getEntry(String url) throws IOException
getEntry
in interface HttpCacheStorage
url
- Url that is the cache key
IOException
public void removeEntry(String url) throws IOException
removeEntry
in interface HttpCacheStorage
url
- Url that is the cache key
IOException
public void updateEntry(String url, HttpCacheUpdateCallback callback) throws IOException
updateEntry
in interface HttpCacheStorage
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |