|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.cocoon.util.AbstractLogEnabled
org.apache.cocoon.components.pipeline.AbstractProcessingPipeline
org.apache.cocoon.components.pipeline.impl.BaseCachingProcessingPipeline
org.apache.cocoon.components.pipeline.impl.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 org.apache.cocoon.caching.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, generatorSource, lastConsumer, manager, newManager, outputBufferSize, parameters, reader, readerMimeType, readerParam, readerSource, serializer, serializerMimeType, serializerParam, serializerSource, sourceResolver, transformerParams, transformers, transformerSources |
Fields inherited from interface org.apache.cocoon.components.pipeline.ProcessingPipeline |
ROLE |
Constructor Summary | |
ExpiresCachingProcessingPipeline()
|
Method Summary | |
protected void |
connectPipeline(org.apache.cocoon.environment.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(org.apache.cocoon.environment.Environment environment)
Prepare the pipeline |
protected boolean |
processReader(org.apache.cocoon.environment.Environment environment)
Process the pipeline using a reader. |
protected boolean |
processXMLPipeline(org.apache.cocoon.environment.Environment environment)
Process the given Environment , producing the output. |
void |
recycle()
Recyclable Interface |
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, connect, getGenerator, getLocation, handleException, informBranchPoint, isInternalError, prepareInternal, prepareInternalErrorHandler, process, process, processErrorHandler, service, setErrorHandler, setGenerator, setMimeTypeForReader, setMimeTypeForSerializer, setProcessorManager, setReader, setSerializer, setup, setupPipeline, setupReader |
Methods inherited from class org.apache.cocoon.util.AbstractLogEnabled |
getLogger, setLogger |
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 org.apache.cocoon.caching.CachedResponse cachedResponse
Constructor Detail |
public ExpiresCachingProcessingPipeline()
Method Detail |
public void parameterize(Parameters params) throws ParameterException
BaseCachingProcessingPipeline
parameterize
in interface Parameterizable
parameterize
in class BaseCachingProcessingPipeline
ParameterException
protected boolean processXMLPipeline(org.apache.cocoon.environment.Environment environment) throws org.apache.cocoon.ProcessingException
Environment
, producing the output.
processXMLPipeline
in class AbstractProcessingPipeline
org.apache.cocoon.ProcessingException
protected void connectPipeline(org.apache.cocoon.environment.Environment environment) throws org.apache.cocoon.ProcessingException
connectPipeline
in class AbstractProcessingPipeline
org.apache.cocoon.ProcessingException
protected void preparePipeline(org.apache.cocoon.environment.Environment environment) throws org.apache.cocoon.ProcessingException
preparePipeline
in class AbstractProcessingPipeline
org.apache.cocoon.ProcessingException
public SourceValidity getValidityForEventPipeline()
null
getValidityForEventPipeline
in interface org.apache.cocoon.components.pipeline.ProcessingPipeline
getValidityForEventPipeline
in class AbstractProcessingPipeline
public String getKeyForEventPipeline()
AbstractProcessingPipeline
null
getKeyForEventPipeline
in interface org.apache.cocoon.components.pipeline.ProcessingPipeline
getKeyForEventPipeline
in class AbstractProcessingPipeline
public void recycle()
recycle
in interface Recyclable
recycle
in class BaseCachingProcessingPipeline
protected boolean processReader(org.apache.cocoon.environment.Environment environment) throws org.apache.cocoon.ProcessingException
AbstractProcessingPipeline
processReader
in class AbstractProcessingPipeline
org.apache.cocoon.ProcessingException
- if
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |