|
|||||||||||
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.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 |
Processor.InternalPipelineDescription |
Field Summary | |
protected boolean |
needsReload
Needs a reload? |
protected Map |
processorAttributes
Processor attributes |
Fields inherited from interface org.apache.cocoon.Processor |
ROLE |
Constructor Summary | |
ConcreteTreeProcessor(TreeProcessor wrappingProcessor,
SitemapExecutor sitemapExecutor)
Builds a concrete processig, given the wrapping processor |
Method Summary | |
Processor.InternalPipelineDescription |
buildPipeline(Environment environment)
Process the given Environment to assemble
a ProcessingPipeline . |
void |
dispose()
|
protected void |
disposeListeners(List l)
|
Object |
getAttribute(String name)
Gets an attribute |
Map |
getClasspathListeners()
|
Configuration[] |
getComponentConfigurations()
Get the sitemap component configurations |
String |
getContext()
Get the context URI for this processor |
Location |
getLocation()
Return the location of the statement in the sitemap. |
Processor |
getRootProcessor()
Get the root processor parent of this processor. |
ServiceManager |
getServiceManager()
|
SitemapExecutor |
getSitemapExecutor()
Return the sitemap executor |
SourceResolver |
getSourceResolver()
Get the source resolver for this processor |
String |
getType()
Return the component type |
TreeProcessor |
getWrappingProcessor()
|
protected boolean |
handleCocoonRedirect(String uri,
Environment environment,
InvokeContext context)
|
void |
handleNotification()
|
void |
markForDisposal()
Mark this processor as needing to be disposed. |
boolean |
process(Environment environment)
Process the given Environment producing the output. |
protected boolean |
process(Environment environment,
InvokeContext context)
Do the actual processing, be it producing the response or just building the pipeline |
Object |
removeAttribute(String name)
Remove an attribute. |
void |
setAttribute(String name,
Object value)
Sets an attribute |
void |
setClasspathListeners(Map classpathListeners)
|
void |
setComponentConfigurations(Configuration componentConfigurations)
Set the sitemap component configurations (called as part of the tree building process) |
void |
setProcessorData(ServiceManager manager,
ClassLoader classloader,
ProcessingNode rootNode,
List disposableNodes,
ComponentLocator componentLocator,
List enterSitemapEventListeners,
List leaveSitemapEventListeners)
Set the processor data, result of the treebuilder job |
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 volatile boolean needsReload
protected Map processorAttributes
Constructor Detail |
public ConcreteTreeProcessor(TreeProcessor wrappingProcessor, SitemapExecutor sitemapExecutor)
Method Detail |
public void handleNotification()
handleNotification
in interface org.apache.commons.jci.listeners.NotificationListener
public void setClasspathListeners(Map classpathListeners)
public Map getClasspathListeners()
public void setProcessorData(ServiceManager manager, ClassLoader classloader, ProcessingNode rootNode, List disposableNodes, ComponentLocator componentLocator, List enterSitemapEventListeners, List leaveSitemapEventListeners)
public void setComponentConfigurations(Configuration componentConfigurations)
public Configuration[] getComponentConfigurations()
Processor
getComponentConfigurations
in interface Processor
Processor.getComponentConfigurations()
public void markForDisposal()
dispose()
will occur when
all request processings on this processor will be terminated.
public TreeProcessor getWrappingProcessor()
public Processor getRootProcessor()
Processor
getRootProcessor
in interface Processor
Processor.getRootProcessor()
public boolean process(Environment environment) throws Exception
Environment
producing the output.
process
in interface Processor
true
is returned.
If not match is found in the sitemap false
is returned.
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 Processor.InternalPipelineDescription buildPipeline(Environment environment) throws Exception
Environment
to assemble
a ProcessingPipeline
.
buildPipeline
in interface Processor
Exception
protected boolean process(Environment environment, InvokeContext context) throws Exception
environment
- context
-
Exception
protected boolean handleCocoonRedirect(String uri, Environment environment, InvokeContext context) throws Exception
Exception
public void dispose()
dispose
in interface Disposable
Disposable.dispose()
protected void disposeListeners(List l)
public SourceResolver getSourceResolver()
Processor
getSourceResolver
in interface Processor
public String getContext()
Processor
getContext
in interface Processor
public SitemapExecutor getSitemapExecutor()
public ServiceManager getServiceManager()
public Object getAttribute(String name)
Processor
getAttribute
in interface Processor
Processor.getAttribute(java.lang.String)
public Object removeAttribute(String name)
Processor
removeAttribute
in interface Processor
Processor.removeAttribute(java.lang.String)
public void setAttribute(String name, Object value)
Processor
setAttribute
in interface Processor
Processor.setAttribute(java.lang.String, java.lang.Object)
public Location getLocation()
ExecutionContext
getLocation
in interface ExecutionContext
ExecutionContext.getLocation()
public String getType()
ExecutionContext
getType
in interface ExecutionContext
ExecutionContext.getType()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |