|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cocoon.util.AbstractLogEnabled org.apache.cocoon.components.treeprocessor.InvokeContext
The invocation context of ProcessingNode
s.
This class serves two purposes:
ProcessingNode.invoke(org.apache.cocoon.environment.Environment, InvokeContext)
,
thus allowing easier addition of new parameters,
Field Summary | |
protected org.apache.cocoon.sitemap.SitemapErrorHandler |
errorHandler
The error handler for the pipeline. |
protected org.apache.cocoon.Processor.InternalPipelineDescription |
internalPipelineDescription
The internal pipeline description |
protected org.apache.cocoon.Processor |
lastProcessor
The last processor |
protected org.apache.cocoon.components.pipeline.ProcessingPipeline |
processingPipeline
The ProcessingPipeline used |
protected Parameters |
processingPipelineParameters
The parameters for the processing pipeline |
protected String |
processingPipelineType
The name of the processing pipeline component |
protected org.apache.cocoon.environment.Redirector |
redirector
The redirector |
Constructor Summary | |
InvokeContext()
Create an InvokeContext without existing pipelines. |
|
InvokeContext(boolean isBuildingPipelineOnly)
Create an InvokeContext |
|
InvokeContext(InvokeContext context,
ServiceManager manager)
Create an InvokeContext based on existing context. |
Method Summary | |
void |
dispose()
Release the pipelines, if any, if they were looked up by this context. |
protected void |
dumpParameters()
Dumps all sitemap parameters to log |
org.apache.cocoon.Processor.InternalPipelineDescription |
getInternalPipelineDescription(org.apache.cocoon.environment.Environment env)
Get the pipeline description |
Map |
getMapByAnchor(String anchor)
Get the result Map by anchor name |
List |
getMapStack()
Get the current Map stack used to resolve expressions. |
Parameters |
getPipelineParameters()
|
String |
getPipelineType()
|
org.apache.cocoon.components.pipeline.ProcessingPipeline |
getProcessingPipeline()
Get the current ProcessingPipeline |
org.apache.cocoon.environment.Redirector |
getRedirector()
Get the redirector to be used by nodes that need it. |
boolean |
hasPipeline()
Returns true if pipeline has been set for this context |
void |
inform(String pipelineType,
Parameters parameters)
Informs the context about a new pipeline section |
boolean |
isBuildingPipelineOnly()
Are we building a pipeline (and not executing it) ? |
void |
popMap()
Pop the topmost element of the current Map stack. |
void |
pushMap(String anchorName,
Map map)
Push a Map on top of the current Map stack. |
void |
service(ServiceManager manager)
Serviceable interface. |
void |
setErrorHandler(org.apache.cocoon.sitemap.SitemapErrorHandler handler)
Set the error handler for the pipeline. |
void |
setInternalPipelineDescription(org.apache.cocoon.Processor.InternalPipelineDescription desc)
Set the processing pipeline for sub-sitemaps |
void |
setLastProcessor(org.apache.cocoon.Processor p)
Set the last processor |
void |
setRedirector(org.apache.cocoon.environment.Redirector redirector)
Set the redirector to be used by nodes that need it. |
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 |
protected org.apache.cocoon.environment.Redirector redirector
protected org.apache.cocoon.Processor lastProcessor
protected org.apache.cocoon.sitemap.SitemapErrorHandler errorHandler
protected String processingPipelineType
protected Parameters processingPipelineParameters
protected org.apache.cocoon.components.pipeline.ProcessingPipeline processingPipeline
protected org.apache.cocoon.Processor.InternalPipelineDescription internalPipelineDescription
Constructor Detail |
public InvokeContext()
InvokeContext
without existing pipelines. This also means
the current request is external.
public InvokeContext(boolean isBuildingPipelineOnly)
InvokeContext
public InvokeContext(InvokeContext context, ServiceManager manager) throws ServiceException
InvokeContext
based on existing context.
Method Detail |
public void service(ServiceManager manager) throws ServiceException
ConcreteTreeProcessor
.
service
in interface Serviceable
ServiceException
public final boolean isBuildingPipelineOnly()
public void setRedirector(org.apache.cocoon.environment.Redirector redirector)
redirector
- the redirectorpublic org.apache.cocoon.environment.Redirector getRedirector()
public void setLastProcessor(org.apache.cocoon.Processor p)
public void inform(String pipelineType, Parameters parameters)
public String getPipelineType()
public Parameters getPipelineParameters()
public void setErrorHandler(org.apache.cocoon.sitemap.SitemapErrorHandler handler)
public boolean hasPipeline()
public org.apache.cocoon.components.pipeline.ProcessingPipeline getProcessingPipeline() throws Exception
ProcessingPipeline
Exception
public void setInternalPipelineDescription(org.apache.cocoon.Processor.InternalPipelineDescription desc)
public org.apache.cocoon.Processor.InternalPipelineDescription getInternalPipelineDescription(org.apache.cocoon.environment.Environment env)
public final List getMapStack()
public final Map getMapByAnchor(String anchor)
public final void pushMap(String anchorName, Map map)
public final void popMap()
protected void dumpParameters()
public void dispose()
dispose
in interface Disposable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |