org.apache.cocoon.caching
Class CachedStreamObject

java.lang.Object
  extended by org.apache.cocoon.caching.CachedStreamObject
All Implemented Interfaces:
Serializable

Deprecated. by the CachedResponse

public final class CachedStreamObject
extends Object
implements Serializable

This is an cached object as it is stored in the StreamCache

Version:
CVS $Id: CachedStreamObject.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Carsten Ziegeler
See Also:
Serialized Form

Constructor Summary
CachedStreamObject(Map validityObjects, byte[] response)
          Deprecated. Create a new entry for the cache.
 
Method Summary
 CacheValidity getCacheValidity(ComponentCacheKey componentKey)
          Deprecated. Get the validity object
 byte[] getResponse()
          Deprecated. Get the cached response.
 boolean isValid(ComponentCacheKey componentKey, CacheValidity componentValidity)
          Deprecated. 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

CachedStreamObject

public CachedStreamObject(Map validityObjects,
                          byte[] response)
Deprecated. 
Create a new entry for the cache.

Parameters:
validityObjects - The CacheValidity objects hashed by their ComponentCacheKey
response - The cached response
Method Detail

isValid

public boolean isValid(ComponentCacheKey componentKey,
                       CacheValidity componentValidity)
Deprecated. 
Checks if the CacheValidity object is still valid.


getCacheValidity

public CacheValidity getCacheValidity(ComponentCacheKey componentKey)
Deprecated. 
Get the validity object

Returns:
The CacheValidity object or null.

getResponse

public byte[] getResponse()
Deprecated. 
Get the cached response.

Returns:
The response


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.