org.apache.cocoon.transformation.helpers
Class StoreIncludeCacheStorageProxy

java.lang.Object
  extended byorg.apache.cocoon.util.AbstractLogEnabled
      extended byorg.apache.cocoon.transformation.helpers.StoreIncludeCacheStorageProxy
All Implemented Interfaces:
IncludeCacheStorageProxy

public final class StoreIncludeCacheStorageProxy
extends org.apache.cocoon.util.AbstractLogEnabled
implements IncludeCacheStorageProxy

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

Since:
2.1
Version:
$Id: StoreIncludeCacheStorageProxy.html 1304280 2012-03-23 11:18:01Z ilgrosso $

Constructor Summary
StoreIncludeCacheStorageProxy(Store store)
          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 org.apache.cocoon.util.AbstractLogEnabled
getLogger, setLogger
 
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)
Constructor

Parameters:
store - The store for the cached content
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-2008 The Apache Software Foundation. All Rights Reserved.