|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.cocoon.caching.CachedStreamObject
This is an cached object as it is stored in the StreamCache
Constructor Summary | |
CachedStreamObject(java.util.Map validityObjects,
byte[] response)
Create a new entry for the cache. |
Method Summary | |
CacheValidity |
getCacheValidity(ComponentCacheKey componentKey)
Get the validity object |
byte[] |
getResponse()
Get the cached response. |
boolean |
isValid(ComponentCacheKey componentKey,
CacheValidity componentValidity)
Checks if the CacheValidity object is still valid. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CachedStreamObject(java.util.Map validityObjects, byte[] response)
validityObjects
- The CacheValidity objects hashed by their
ComponentCacheKey
response
- The cached responseMethod Detail |
public boolean isValid(ComponentCacheKey componentKey, CacheValidity componentValidity)
public CacheValidity getCacheValidity(ComponentCacheKey componentKey)
CacheValidity
object or null
.public byte[] getResponse()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |