org.apache.cocoon.transformation.helpers
Class ModifiableSourceIncludeCacheStorageProxy

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

public final class ModifiableSourceIncludeCacheStorageProxy
extends org.apache.cocoon.util.AbstractLogEnabled
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:
$Id: ModifiableSourceIncludeCacheStorageProxy.html 1304280 2012-03-23 11:18:01Z ilgrosso $

Constructor Summary
ModifiableSourceIncludeCacheStorageProxy(SourceResolver resolver, String parentURI)
          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 org.apache.cocoon.util.AbstractLogEnabled
getLogger, setLogger
 
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)
Constructor.

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


hashCode

public int hashCode()
Generate a hash code



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