org.codehaus.httpcache4j.cache
Class AbstractCacheStorage

java.lang.Object
  extended by org.codehaus.httpcache4j.cache.AbstractCacheStorage
All Implemented Interfaces:
java.lang.Iterable<Key>, CacheStorage

public abstract class AbstractCacheStorage
extends java.lang.Object
implements CacheStorage

Version:
$Revision: $
Author:
Erlend Hamnaberg

Constructor Summary
AbstractCacheStorage()
           
 
Method Summary
protected abstract  HTTPResponse get(Key key)
           
 HTTPResponse insert(HTTPRequest request, HTTPResponse response)
           
protected abstract  void invalidate(Key key)
           
protected abstract  HTTPResponse putImpl(Key key, HTTPResponse response)
           
protected abstract  HTTPResponse rewriteResponse(Key key, HTTPResponse response)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.codehaus.httpcache4j.cache.CacheStorage
clear, get, invalidate, size, update
 
Methods inherited from interface java.lang.Iterable
iterator
 

Constructor Detail

AbstractCacheStorage

public AbstractCacheStorage()
Method Detail

insert

public final HTTPResponse insert(HTTPRequest request,
                                 HTTPResponse response)
Specified by:
insert in interface CacheStorage

rewriteResponse

protected abstract HTTPResponse rewriteResponse(Key key,
                                                HTTPResponse response)

putImpl

protected abstract HTTPResponse putImpl(Key key,
                                        HTTPResponse response)

invalidate

protected abstract void invalidate(Key key)

get

protected abstract HTTPResponse get(Key key)


Copyright © 2008-2009. All Rights Reserved.