| java.lang.Object org.apache.cocoon.caching.CachedResponse
All known Subclasses: org.apache.cocoon.components.source.impl.CachedSourceResponse,
CachedResponse | public class CachedResponse implements Serializable(Code) | | This is a cached response. This can either contain a byte array with
the complete character response or a byte array with compiled SAX events.
This class replaces the CachedEventObject and the
CachedStreamObject .
since: 2.1 author: Carsten Ziegeler version: CVS $Id: CachedResponse.java 433543 2006-08-22 06:22:54Z crossley $ |
Constructor Summary | |
public | CachedResponse(SourceValidity[] validityObjects, byte[] response) Create a new entry for the cache. | public | CachedResponse(SourceValidity validityObject, byte[] response) Create a new entry for the cache. | public | CachedResponse(SourceValidity[] validityObjects, byte[] response, Long expires) Create a new entry for the cache. |
lastModified | final protected long lastModified(Code) | | |
response | final protected byte[] response(Code) | | |
validityObjects | final protected SourceValidity[] validityObjects(Code) | | |
CachedResponse | public CachedResponse(SourceValidity[] validityObjects, byte[] response)(Code) | | Create a new entry for the cache.
Parameters: validityObjects - The SourceValidity objects in the orderthey occured in the pipeline Parameters: response - The cached sax stream or character stream |
CachedResponse | public CachedResponse(SourceValidity validityObject, byte[] response)(Code) | | Create a new entry for the cache.
Parameters: validityObject - The SourceValidity object Parameters: response - The cached sax stream or character stream |
CachedResponse | public CachedResponse(SourceValidity[] validityObjects, byte[] response, Long expires)(Code) | | Create a new entry for the cache.
Parameters: validityObjects - The SourceValidity objects in the orderthey occured in the pipeline Parameters: response - The cached sax stream or character stream Parameters: expires - The configured expires, or null if noexpires was defined. |
getContentType | public String getContentType()(Code) | | Returns the cached content type (or null). |
getExpires | public Long getExpires()(Code) | | Get the configured expires.
The configured expires, or null if no expires was defined |
getLastModified | public long getLastModified()(Code) | | the last modified time |
getResponse | public byte[] getResponse()(Code) | | Get the cached response.
The sax stream or character stream |
getValidityObjects | public SourceValidity[] getValidityObjects()(Code) | | Get the validity objects
|
setContentType | public void setContentType(String value)(Code) | | Parameters: value - The content type to cache. |
setExpires | public void setExpires(Long newExpires)(Code) | | Set the (newly) configured expires.
|
setLastModified | protected long setLastModified(long lastModified)(Code) | | Set the (newly) configured last modified.
|
|
|