|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.avalon.framework.logger.AbstractLogEnabled org.apache.cocoon.components.treeprocessor.InvokeContext
public class 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 SitemapErrorHandler |
errorHandler
The error handler for the pipeline. |
protected ComponentSelector |
pipelineSelector
The Selector for the processing pipeline |
protected ProcessingPipeline |
processingPipeline
The ProcessingPipeline used |
protected String |
processingPipelineName
The name of the processing pipeline component |
protected Map |
processingPipelineObjectModel
The object model used to resolve processingPipelineParameters |
protected Map |
processingPipelineParameters
The parameters for the processing pipeline |
protected Redirector |
redirector
The redirector |
Constructor Summary | |
---|---|
InvokeContext()
Create an InvokeContext without existing pipelines. |
|
InvokeContext(boolean isBuildingPipelineOnly)
Create an InvokeContext |
Method Summary | |
---|---|
void |
compose(ComponentManager manager)
Composable Interface |
void |
dispose()
Release the pipelines, if any, if they were looked up by this context. |
protected void |
dumpParameters()
Dumps all sitemap parameters to log |
Map |
getMapByAnchor(String anchor)
Get the result Map by anchor name |
List |
getMapStack()
Get the current Map stack used to resolve expressions. |
ProcessingPipeline |
getProcessingPipeline()
Get the current ProcessingPipeline |
Redirector |
getRedirector()
Get the redirector to be used by nodes that need it. |
void |
inform(String pipelineName,
Map parameters,
Map objectModel)
Informs the context about a new pipeline section |
boolean |
isBuildingPipelineOnly()
Are we building a pipeline (and not executing it) ? |
boolean |
pipelineIsSet()
Determines if the Pipeline been set for this context |
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 |
recompose(ComponentManager manager)
Recomposable interface |
void |
setErrorHandler(SitemapErrorHandler handler)
Set the error handler for the pipeline. |
void |
setProcessingPipeline(ProcessingPipeline pipeline)
Set the processing pipeline for sub-sitemaps |
void |
setRedirector(Redirector redirector)
Set the redirector to be used by nodes that need it. |
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 |
---|
protected Redirector redirector
protected String processingPipelineName
protected Map processingPipelineParameters
protected Map processingPipelineObjectModel
protected ComponentSelector pipelineSelector
protected ProcessingPipeline processingPipeline
protected SitemapErrorHandler errorHandler
Constructor Detail |
---|
public InvokeContext()
InvokeContext
without existing pipelines. This also means
the current request is external.
public InvokeContext(boolean isBuildingPipelineOnly)
InvokeContext
Method Detail |
---|
public boolean pipelineIsSet()
public void compose(ComponentManager manager) throws ComponentException
compose
in interface Composable
ComponentException
public void recompose(ComponentManager manager) throws ComponentException
recompose
in interface Recomposable
ComponentException
public void inform(String pipelineName, Map parameters, Map objectModel)
public ProcessingPipeline getProcessingPipeline() throws Exception
ProcessingPipeline
Exception
public void setProcessingPipeline(ProcessingPipeline pipeline)
public final boolean isBuildingPipelineOnly()
public final List getMapStack()
public final Map getMapByAnchor(String anchor)
public final void pushMap(String anchorName, Map map)
protected void dumpParameters()
public final void popMap()
public void setRedirector(Redirector redirector)
redirector
- the redirectorpublic Redirector getRedirector()
public void dispose()
dispose
in interface Disposable
public void setErrorHandler(SitemapErrorHandler handler)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |