org.apache.cocoon.transformation.helpers
Class StoreIncludeCacheStorageProxy

java.lang.Object
  extended by org.apache.cocoon.transformation.helpers.StoreIncludeCacheStorageProxy
All Implemented Interfaces:
IncludeCacheStorageProxy

public final class StoreIncludeCacheStorageProxy
extends Object
implements IncludeCacheStorageProxy

This is the interface between the IncludeCacheManager and the usual store.

Since:
2.1
Version:
CVS $Id: StoreIncludeCacheStorageProxy.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Carsten Ziegeler

Constructor Summary
StoreIncludeCacheStorageProxy(Store store, Logger logger)
          Constructor
 
Method Summary
 Serializable get(String uri)
          Get the cached content for the given URI.
 void put(String uri, Serializable object)
          Put the content into the cache for the given URI.
 void remove(String uri)
          Remove the cached content for the given URI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StoreIncludeCacheStorageProxy

public StoreIncludeCacheStorageProxy(Store store,
                                     Logger logger)
Constructor

Parameters:
store - The store for the cached content
logger - A logger for debugging
Method Detail

get

public Serializable get(String uri)
Description copied from interface: IncludeCacheStorageProxy
Get the cached content for the given URI.

Specified by:
get in interface IncludeCacheStorageProxy
Parameters:
uri - Absolute URI specifying the content
Returns:
Serializable
See Also:
IncludeCacheStorageProxy.get(java.lang.String)

put

public void put(String uri,
                Serializable object)
         throws IOException
Description copied from interface: IncludeCacheStorageProxy
Put the content into the cache for the given URI.

Specified by:
put in interface IncludeCacheStorageProxy
Parameters:
uri - Absolute URI specifying the content
object - The content
Throws:
IOException
See Also:
IncludeCacheStorageProxy.put(java.lang.String, java.io.Serializable)

remove

public void remove(String uri)
Description copied from interface: IncludeCacheStorageProxy
Remove the cached content for the given URI

Specified by:
remove in interface IncludeCacheStorageProxy
Parameters:
uri - Absolute URI specifying the content
See Also:
IncludeCacheStorageProxy.remove(java.lang.String)


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