org.apache.cocoon.transformation.helpers
Interface IncludeCacheStorageProxy

All Known Implementing Classes:
ModifiableSourceIncludeCacheStorageProxy, StoreIncludeCacheStorageProxy

public interface IncludeCacheStorageProxy

A CacheStorageProxy is an interface object between the IncludeCacheManager and the real store caching the content. Currently you can use the StoreIncludeCacheStorageProxy that uses the usual store or the ModifiableSourceIncludeCacheStorageProxy that uses a configured source.

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

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
 

Method Detail

get

public Serializable get(String uri)
Get the cached content for the given URI.

Parameters:
uri - Absolute URI specifying the content
Returns:
Serializable

put

public void put(String uri,
                Serializable object)
         throws IOException
Put the content into the cache for the given URI.

Parameters:
uri - Absolute URI specifying the content
object - The content
Throws:
IOException

remove

public void remove(String uri)
Remove the cached content for the given URI

Parameters:
uri - Absolute URI specifying the content


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