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:
CVS $Id: IncludeCacheStorageProxy.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Carsten Ziegeler

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

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

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

put

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

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

Parameters:
uri - Absolute URI specifying the content


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