org.apache.cocoon.transformation.helpers
Class ModifiableSourceIncludeCacheStorageProxy

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

public final class ModifiableSourceIncludeCacheStorageProxy
extends Object
implements IncludeCacheStorageProxy

This is the interface between the IncludeCacheManager and a Source object that stores the cached content in a directory manner.

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

Constructor Summary
ModifiableSourceIncludeCacheStorageProxy(SourceResolver resolver, String parentURI, Logger logger)
          Constructor
 
Method Summary
 boolean equals(Object object)
          Compare
 Serializable get(String uri)
          Get the cached content for the given URI.
 int hashCode()
          Generate a hash code
 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, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModifiableSourceIncludeCacheStorageProxy

public ModifiableSourceIncludeCacheStorageProxy(SourceResolver resolver,
                                                String parentURI,
                                                Logger logger)
Constructor

Parameters:
resolver - For source resolving
parentURI - The "directory"
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)

equals

public boolean equals(Object object)
Compare

Overrides:
equals in class Object

hashCode

public int hashCode()
Generate a hash code

Overrides:
hashCode in class Object


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