|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline
org.apache.cocoon.components.pipeline.impl.BaseCachingProcessingPipeline
org.apache.cocoon.components.pipeline.impl.ExpiresCachingProcessingPipeline
public class ExpiresCachingProcessingPipeline
This pipeline implementation caches the complete content for a defined
period of time (expires).
| Field Summary | |
|---|---|
static String |
CACHE_EXPIRES_KEY
This key can be used to put an expires information in the object model |
static String |
CACHE_KEY_KEY
This key can be used to put a key in the object model |
protected CachedResponse |
cachedResponse
The cached response |
protected long |
cacheExpires
The expires information. |
protected IdentifierCacheKey |
cacheKey
The key used for caching |
protected SourceValidity |
cacheValidity
The source validity |
protected long |
defaultCacheExpires
Default value for expiration |
| Fields inherited from class org.apache.cocoon.components.pipeline.impl.BaseCachingProcessingPipeline |
|---|
cache, xmlDeserializer, xmlSerializer |
| Fields inherited from class org.apache.cocoon.components.pipeline.AbstractProcessingPipeline |
|---|
configuration, configuredExpires, configuredOutputBufferSize, expires, generator, generatorParam, generatorSelector, generatorSource, lastConsumer, manager, newManager, outputBufferSize, parameters, reader, readerMimeType, readerParam, readerSelector, readerSource, serializer, serializerMimeType, serializerParam, serializerSelector, serializerSource, sitemapReaderMimeType, sitemapSerializerMimeType, transformerParams, transformers, transformerSelectors, transformerSources |
| Fields inherited from interface org.apache.cocoon.components.pipeline.ProcessingPipeline |
|---|
ROLE |
| Constructor Summary | |
|---|---|
ExpiresCachingProcessingPipeline()
|
|
| Method Summary | |
|---|---|
protected void |
connectPipeline(Environment environment)
Connect the XML pipeline. |
String |
getKeyForEventPipeline()
Return the key for the event pipeline If the "event pipeline" (= the complete pipeline without the serializer) is cacheable and valid, return a key. |
SourceValidity |
getValidityForEventPipeline()
Return valid validity objects for the event pipeline If the "event pipeline" (= the complete pipeline without the serializer) is cacheable and valid, return all validity objects. |
void |
parameterize(Parameters params)
Parameterizable Interface - Configuration |
protected void |
preparePipeline(Environment environment)
Prepare the pipeline |
protected boolean |
processReader(Environment environment)
Process the pipeline using a reader. |
protected boolean |
processXMLPipeline(Environment environment)
Process the given Environment, producing the output. |
void |
recycle()
Recyclable Interface |
protected void |
setupPipeline(Environment environment)
Setup pipeline components. |
| Methods inherited from class org.apache.cocoon.components.pipeline.impl.BaseCachingProcessingPipeline |
|---|
dispose |
| Methods inherited from class org.apache.cocoon.components.pipeline.AbstractProcessingPipeline |
|---|
addTransformer, checkIfModified, checkPipeline, compose, connect, getGenerator, getLocation, handleException, informBranchPoint, isInternalError, prepareInternal, prepareInternalErrorHandler, process, process, processErrorHandler, recompose, release, setErrorHandler, setGenerator, setMimeTypeForReader, setMimeTypeForSerializer, setReader, setSerializer, setup, setupReader |
| Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
|---|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String CACHE_KEY_KEY
public static final String CACHE_EXPIRES_KEY
protected SourceValidity cacheValidity
protected IdentifierCacheKey cacheKey
protected long cacheExpires
protected long defaultCacheExpires
protected CachedResponse cachedResponse
| Constructor Detail |
|---|
public ExpiresCachingProcessingPipeline()
| Method Detail |
|---|
public void parameterize(Parameters params)
throws ParameterException
BaseCachingProcessingPipeline
parameterize in interface Parameterizableparameterize in class BaseCachingProcessingPipelineParameterException
protected boolean processXMLPipeline(Environment environment)
throws ProcessingException
Environment, producing the output.
processXMLPipeline in class AbstractProcessingPipelineProcessingException
protected void connectPipeline(Environment environment)
throws ProcessingException
connectPipeline in class AbstractProcessingPipelineProcessingException
protected void preparePipeline(Environment environment)
throws ProcessingException
preparePipeline in class AbstractProcessingPipelineProcessingException
protected void setupPipeline(Environment environment)
throws ProcessingException
AbstractProcessingPipeline
setupPipeline in class AbstractProcessingPipelineProcessingExceptionpublic SourceValidity getValidityForEventPipeline()
null
getValidityForEventPipeline in interface ProcessingPipelinegetValidityForEventPipeline in class AbstractProcessingPipelinepublic String getKeyForEventPipeline()
AbstractProcessingPipelinenull
getKeyForEventPipeline in interface ProcessingPipelinegetKeyForEventPipeline in class AbstractProcessingPipelinepublic void recycle()
recycle in interface Recyclablerecycle in class BaseCachingProcessingPipeline
protected boolean processReader(Environment environment)
throws ProcessingException
AbstractProcessingPipeline
processReader in class AbstractProcessingPipelineProcessingException - if
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||