org.apache.abdera.protocol.client.cache
Class AbstractCache

java.lang.Object
  extended by org.apache.abdera.protocol.client.cache.AbstractCache
All Implemented Interfaces:
Iterable<Object>, Cache
Direct Known Subclasses:
InMemoryCache

public abstract class AbstractCache
extends Object
implements Cache


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.abdera.protocol.client.cache.Cache
Cache.Disposition
 
Field Summary
protected  Abdera abdera
           
 
Constructor Summary
protected AbstractCache(Abdera abdera)
           
 
Method Summary
protected abstract  void add(Object key, CachedResponse response)
           
protected abstract  CachedResponse createCachedResponse(ClientResponse response, Object key)
           
 Cache.Disposition disposition(Object key, RequestOptions options)
          Get the disposition of a specific item
 ClientResponse update(Object key, RequestOptions options, ClientResponse response, ClientResponse cached_response)
          Update the cached item
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.abdera.protocol.client.cache.Cache
clear, get, remove
 
Methods inherited from interface java.lang.Iterable
iterator
 

Field Detail

abdera

protected final Abdera abdera
Constructor Detail

AbstractCache

protected AbstractCache(Abdera abdera)
Method Detail

disposition

public Cache.Disposition disposition(Object key,
                                     RequestOptions options)
Description copied from interface: Cache
Get the disposition of a specific item

Specified by:
disposition in interface Cache

add

protected abstract void add(Object key,
                            CachedResponse response)

createCachedResponse

protected abstract CachedResponse createCachedResponse(ClientResponse response,
                                                       Object key)
                                                throws IOException
Throws:
IOException

update

public ClientResponse update(Object key,
                             RequestOptions options,
                             ClientResponse response,
                             ClientResponse cached_response)
Description copied from interface: Cache
Update the cached item

Specified by:
update in interface Cache


Copyright © 2006-2010 Apache Software Foundation. All Rights Reserved.