org.apache.cocoon.caching
Class CachedStreamObject
java.lang.Object
|
+--org.apache.cocoon.caching.CachedStreamObject
- All Implemented Interfaces:
- java.io.Serializable
- public final class CachedStreamObject
- extends java.lang.Object
- implements java.io.Serializable
This is an cached object as it is stored in the StreamCache
- Version:
- CVS $Revision: 1.1.1.1.2.2 $ $Date: 2001/10/11 08:56:05 $
- Author:
- Carsten Ziegeler
- See Also:
- Serialized Form
Constructor Summary |
CachedStreamObject(java.util.Map validityObjects,
byte[] response)
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 |
CachedStreamObject
public CachedStreamObject(java.util.Map validityObjects,
byte[] response)
- Create a new entry for the cache.
- Parameters:
validityObjects
- The CacheValidity objects hashed by their
ComponentCacheKey
response
- The cached response
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
.
getResponse
public byte[] getResponse()
- Get the cached response.
- Returns:
- The response
Copyright © 1999-2001 Apache Software Foundation. All Rights Reserved.