org.apache.cocoon.caching
public final class: CachedStreamObject [javadoc |
source]
java.lang.Object
org.apache.cocoon.caching.CachedStreamObject
All Implemented Interfaces:
Serializable
Deprecated! by - the
CachedResponse This is an cached object as it is stored in the
StreamCache- author:
< - a href="mailto:cziegeler@apache.org">Carsten Ziegeler
- version:
CVS - $Id: CachedStreamObject.java 433543 2006-08-22 06:22:54Z crossley $
| Constructor: |
public CachedStreamObject(Map validityObjects,
byte[] response) {
this.validityObjects = validityObjects;
this.response = response;
}
Create a new entry for the cache. Parameters:
validityObjects - The CacheValidity objects hashed by their
ComponentCacheKey
response - The cached response
|
| Method from org.apache.cocoon.caching.CachedStreamObject Detail: |
public CacheValidity getCacheValidity(ComponentCacheKey componentKey) {
return (CacheValidity)this.validityObjects.get(componentKey);
} Deprecated! |
public byte[] getResponse() {
return this.response;
} Deprecated! |
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. |