|
|||||||||||
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.ConcreteTreeProcessor
The concrete implementation of Processor
, containing the evaluation tree and associated
data such as component manager.
Nested Class Summary |
Nested classes inherited from class org.apache.cocoon.Processor |
org.apache.cocoon.Processor.InternalPipelineDescription |
Field Summary | |
protected ClassLoader |
classLoader
Classloader for this sitemap. |
protected Map |
processorAttributes
Processor attributes |
protected WebApplicationContext |
webAppContext
Container for this sitemap. |
Fields inherited from interface org.apache.cocoon.Processor |
ROLE |
Constructor Summary | |
ConcreteTreeProcessor(TreeProcessor wrappingProcessor,
org.apache.cocoon.sitemap.SitemapExecutor sitemapExecutor)
Builds a concrete processig, given the wrapping processor |
Method Summary | |
org.apache.cocoon.Processor.InternalPipelineDescription |
buildPipeline(org.apache.cocoon.environment.Environment environment)
Process the given Environment to assemble
a ProcessingPipeline . |
void |
dispose()
|
Object |
getAttribute(String name)
|
String |
getContext()
|
org.apache.cocoon.util.location.Location |
getLocation()
|
org.apache.cocoon.Processor |
getParent()
|
org.apache.cocoon.Processor |
getRootProcessor()
|
ServiceManager |
getServiceManager()
|
org.apache.cocoon.sitemap.SitemapExecutor |
getSitemapExecutor()
Return the sitemap executor |
org.apache.cocoon.environment.SourceResolver |
getSourceResolver()
|
String |
getType()
|
TreeProcessor |
getWrappingProcessor()
|
protected boolean |
handleCocoonRedirect(String uri,
org.apache.cocoon.environment.Environment env,
InvokeContext context)
|
void |
markForDisposal()
Mark this processor as needing to be disposed. |
boolean |
process(org.apache.cocoon.environment.Environment environment)
Process the given Environment producing the output. |
protected boolean |
process(org.apache.cocoon.environment.Environment environment,
InvokeContext context)
Do the actual processing, be it producing the response or just building the pipeline |
Object |
removeAttribute(String name)
|
void |
setAttribute(String name,
Object value)
|
void |
setProcessorData(WebApplicationContext webAppContext,
ProcessingNode rootNode,
List disposableNodes,
List enterSitemapEventListeners,
List leaveSitemapEventListeners)
Set the processor data, result of the treebuilder job |
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 Map processorAttributes
protected WebApplicationContext webAppContext
protected ClassLoader classLoader
Constructor Detail |
public ConcreteTreeProcessor(TreeProcessor wrappingProcessor, org.apache.cocoon.sitemap.SitemapExecutor sitemapExecutor)
Method Detail |
public void setProcessorData(WebApplicationContext webAppContext, ProcessingNode rootNode, List disposableNodes, List enterSitemapEventListeners, List leaveSitemapEventListeners)
public void markForDisposal()
dispose()
will occur when
all request processings on this processor will be terminated.
public TreeProcessor getWrappingProcessor()
public org.apache.cocoon.Processor getRootProcessor()
getRootProcessor
in interface org.apache.cocoon.Processor
Processor.getRootProcessor()
public boolean process(org.apache.cocoon.environment.Environment environment) throws Exception
Environment
producing the output.
process
in interface org.apache.cocoon.Processor
true
is returned.
If not match is found in the sitemap false
is returned.
org.apache.cocoon.ResourceNotFoundException
- If a sitemap component tries
to access a resource which can not
be found, e.g. the generator
ConnectionResetException If the connection was reset
Exception
public org.apache.cocoon.Processor.InternalPipelineDescription buildPipeline(org.apache.cocoon.environment.Environment environment) throws Exception
Environment
to assemble
a ProcessingPipeline
.
buildPipeline
in interface org.apache.cocoon.Processor
Exception
protected boolean process(org.apache.cocoon.environment.Environment environment, InvokeContext context) throws Exception
environment
- context
-
Exception
protected boolean handleCocoonRedirect(String uri, org.apache.cocoon.environment.Environment env, InvokeContext context) throws Exception
Exception
public void dispose()
dispose
in interface Disposable
Disposable.dispose()
public org.apache.cocoon.environment.SourceResolver getSourceResolver()
getSourceResolver
in interface org.apache.cocoon.Processor
public String getContext()
getContext
in interface org.apache.cocoon.Processor
public org.apache.cocoon.sitemap.SitemapExecutor getSitemapExecutor()
public ServiceManager getServiceManager()
public Object getAttribute(String name)
getAttribute
in interface org.apache.cocoon.Processor
Processor.getAttribute(java.lang.String)
public Object removeAttribute(String name)
removeAttribute
in interface org.apache.cocoon.Processor
Processor.removeAttribute(java.lang.String)
public void setAttribute(String name, Object value)
setAttribute
in interface org.apache.cocoon.Processor
Processor.setAttribute(java.lang.String, java.lang.Object)
public org.apache.cocoon.util.location.Location getLocation()
getLocation
in interface org.apache.cocoon.sitemap.ExecutionContext
ExecutionContext.getLocation()
public String getType()
getType
in interface org.apache.cocoon.sitemap.ExecutionContext
ExecutionContext.getType()
public org.apache.cocoon.Processor getParent()
getParent
in interface org.apache.cocoon.Processor
Processor.getParent()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |