|
|||||||||||
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.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 SitemapErrorHandler |
errorHandler
The error handler for the pipeline. |
protected Processor.InternalPipelineDescription |
internalPipelineDescription
The internal pipeline description |
protected Processor |
lastProcessor
The last processor |
protected ServiceSelector |
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 Parameters |
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 |
dispose()
Release the pipelines, if any, if they were looked up by this context. |
protected void |
dumpParameters()
Dumps all sitemap parameters to log |
Processor.InternalPipelineDescription |
getInternalPipelineDescription(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()
|
ProcessingPipeline |
getProcessingPipeline()
Get the current ProcessingPipeline |
Redirector |
getRedirector()
Get the redirector to be used by nodes that need it. |
void |
inform(String pipelineName,
Parameters 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 |
service(ServiceManager manager)
Serviceable interface |
void |
setErrorHandler(SitemapErrorHandler handler)
Set the error handler for the pipeline. |
void |
setInternalPipelineDescription(Processor.InternalPipelineDescription desc)
Set the processing pipeline for sub-sitemaps |
void |
setLastProcessor(Processor p)
Set the last processor |
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 Parameters processingPipelineParameters
protected Map processingPipelineObjectModel
protected ServiceSelector pipelineSelector
protected ProcessingPipeline processingPipeline
protected Processor.InternalPipelineDescription internalPipelineDescription
protected SitemapErrorHandler errorHandler
protected Processor lastProcessor
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 service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
ServiceException
public void inform(String pipelineName, Parameters parameters, Map objectModel)
public Parameters getPipelineParameters()
public String getPipelineType()
public ProcessingPipeline getProcessingPipeline() throws Exception
ProcessingPipeline
Exception
public void setInternalPipelineDescription(Processor.InternalPipelineDescription desc)
public Processor.InternalPipelineDescription getInternalPipelineDescription(Environment env)
public void setLastProcessor(Processor p)
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 |