org.apache.cocoon.caching
public final class: CachedEventObject [javadoc |
source]
java.lang.Object
org.apache.cocoon.caching.CachedEventObject
All Implemented Interfaces:
Serializable
Deprecated! by - the
CachedResponse This is a cached object as it is stored in the
EventCache- author:
< - a href="mailto:cziegeler@apache.org">Carsten Ziegeler
- version:
CVS - $Id: CachedEventObject.java 433543 2006-08-22 06:22:54Z crossley $
| Constructor: |
public CachedEventObject(Map validityObjects,
Object saxFragment) {
this.validityObjects = validityObjects;
this.saxFragment = saxFragment;
}
Create a new entry for the cache. Parameters:
validityObjects - The CacheValidity objects hashed by their
ComponentCacheKey
saxFragment - The cached sax stream
|
| Method from org.apache.cocoon.caching.CachedEventObject Detail: |
public CacheValidity getCacheValidity(ComponentCacheKey componentKey) {
return (CacheValidity)this.validityObjects.get(componentKey);
} Deprecated! |
public Object getSAXFragment() {
return this.saxFragment;
} Deprecated!Get the cached sax stream. |
public boolean isValid(ComponentCacheKey componentKey,
CacheValidity componentValidity) {
CacheValidity ownValidity = (CacheValidity)this.validityObjects.get(componentKey);
if (ownValidity != null && ownValidity.isValid(componentValidity)) {
return true;
}
return false;
} Deprecated!Checks if the CacheValidity object is still valid. |