org.apache.abdera.protocol.client.cache
Interface Cache

All Known Implementing Classes:
CacheBase, InMemoryCache, LRUCache

public interface Cache


Method Summary
 void clear()
           
 CachedResponse get(CacheKey key)
           
 CachedResponse get(java.lang.String uri, RequestOptions options)
           
 CacheKey getCacheKey(java.lang.String uri, RequestOptions options)
           
 CacheDisposition getDisposition(java.lang.String uri, RequestOptions options)
           
 CachedResponse getIfFreshEnough(java.lang.String uri, RequestOptions options)
           
 void remove(CacheKey key)
           
 void remove(java.lang.String uri, RequestOptions options)
           
 ClientResponse update(RequestOptions options, ClientResponse response, ClientResponse cached_response)
           
 

Method Detail

getCacheKey

CacheKey getCacheKey(java.lang.String uri,
                     RequestOptions options)

getDisposition

CacheDisposition getDisposition(java.lang.String uri,
                                RequestOptions options)

getIfFreshEnough

CachedResponse getIfFreshEnough(java.lang.String uri,
                                RequestOptions options)

get

CachedResponse get(java.lang.String uri,
                   RequestOptions options)

get

CachedResponse get(CacheKey key)

clear

void clear()

remove

void remove(java.lang.String uri,
            RequestOptions options)

remove

void remove(CacheKey key)

update

ClientResponse update(RequestOptions options,
                      ClientResponse response,
                      ClientResponse cached_response)