org.codehaus.httpcache4j.cache
Class NullCacheStorage

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

public class NullCacheStorage
extends Object
implements CacheStorage

Author:
Erlend Hamnaberg

Constructor Summary
NullCacheStorage()
           
 
Method Summary
 void clear()
           
 CacheItem get(HTTPRequest request)
           
 CacheItem get(Key key)
           
 HTTPResponse insert(HTTPRequest request, HTTPResponse response)
           
 void invalidate(Key key)
           
 void invalidate(URI uri)
           
 Iterator<Key> iterator()
           
 int size()
           
 HTTPResponse update(HTTPRequest request, HTTPResponse response)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullCacheStorage

public NullCacheStorage()
Method Detail

insert

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

update

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

get

public CacheItem get(HTTPRequest request)
Specified by:
get in interface CacheStorage

get

public CacheItem get(Key key)
Specified by:
get in interface CacheStorage

invalidate

public void invalidate(Key key)

invalidate

public void invalidate(URI uri)
Specified by:
invalidate in interface CacheStorage

clear

public void clear()
Specified by:
clear in interface CacheStorage

size

public int size()
Specified by:
size in interface CacheStorage

iterator

public Iterator<Key> iterator()
Specified by:
iterator in interface Iterable<Key>


Copyright © 2008-2011. All Rights Reserved.