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 $Id: CachedStreamObject.java,v 1.6 2002/02/22 07:03:49 cziegeler Exp $
- 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-2002 Apache Software Foundation. All Rights Reserved.