org.apache.cocoon.caching
Class CachedEventObject
java.lang.Object
|
+--org.apache.cocoon.caching.CachedEventObject
- All Implemented Interfaces:
- java.io.Serializable
- public final class CachedEventObject
- extends java.lang.Object
- implements java.io.Serializable
This is an cached object as it is stored in the EventCache
- Version:
- CVS $Id: CachedEventObject.java,v 1.6 2002/02/22 07:03:49 cziegeler Exp $
- Author:
- Carsten Ziegeler
- See Also:
- Serialized Form
Constructor Summary |
CachedEventObject(java.util.Map validityObjects,
java.lang.Object saxFragment)
Create a new entry for the cache. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CachedEventObject
public CachedEventObject(java.util.Map validityObjects,
java.lang.Object saxFragment)
- Create a new entry for the cache.
- Parameters:
validityObjects
- The CacheValidity objects hashed by their
ComponentCacheKey
saxFragment
- The cached sax stream
isValid
public boolean isValid(ComponentCacheKey componentKey,
CacheValidity componentValidity)
- Checks if the CacheValidity object is still valid.
getCacheValidity
public CacheValidity getCacheValidity(ComponentCacheKey componentKey)
- Get the validity object
- Returns:
- The
CacheValidity
object or null
.
getSAXFragment
public java.lang.Object getSAXFragment()
- Get the cached sax stream.
- Returns:
- The sax stream
Copyright © 1999-2002 Apache Software Foundation. All Rights Reserved.