org.apache.http.impl.client.cache.ehcache
Class EhcacheHttpCacheStorage

java.lang.Object
  extended by org.apache.http.impl.client.cache.ehcache.EhcacheHttpCacheStorage
All Implemented Interfaces:
HttpCacheStorage

public class EhcacheHttpCacheStorage
extends Object
implements HttpCacheStorage


Constructor Summary
EhcacheHttpCacheStorage(Ehcache cache)
           
EhcacheHttpCacheStorage(Ehcache cache, CacheConfig config)
           
EhcacheHttpCacheStorage(Ehcache cache, CacheConfig config, HttpCacheEntrySerializer serializer)
           
 
Method Summary
 HttpCacheEntry getEntry(String key)
           
 void putEntry(String key, HttpCacheEntry entry)
           
 void removeEntry(String key)
           
 void updateEntry(String key, HttpCacheUpdateCallback callback)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EhcacheHttpCacheStorage

public EhcacheHttpCacheStorage(Ehcache cache)

EhcacheHttpCacheStorage

public EhcacheHttpCacheStorage(Ehcache cache,
                               CacheConfig config)

EhcacheHttpCacheStorage

public EhcacheHttpCacheStorage(Ehcache cache,
                               CacheConfig config,
                               HttpCacheEntrySerializer serializer)
Method Detail

putEntry

public void putEntry(String key,
                     HttpCacheEntry entry)
              throws IOException
Specified by:
putEntry in interface HttpCacheStorage
Throws:
IOException

getEntry

public HttpCacheEntry getEntry(String key)
                        throws IOException
Specified by:
getEntry in interface HttpCacheStorage
Throws:
IOException

removeEntry

public void removeEntry(String key)
Specified by:
removeEntry in interface HttpCacheStorage

updateEntry

public void updateEntry(String key,
                        HttpCacheUpdateCallback callback)
                 throws IOException,
                        HttpCacheUpdateException
Specified by:
updateEntry in interface HttpCacheStorage
Throws:
IOException
HttpCacheUpdateException


Copyright © 1999-2011 The Apache Software Foundation. All Rights Reserved.