|
||||||||||
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.TreeProcessor
public class TreeProcessor
Interpreted tree-traversal implementation of a pipeline assembly language.
Field Summary | |
---|---|
protected ExtendedComponentSelector |
builderSelector
Selector of TreeBuilders, the hint is the language name |
protected boolean |
checkReload
Check for reload? |
static String |
COCOON_REDIRECT_ATTR
|
protected Context |
context
The context |
protected Configuration |
currentLanguage
The current language configuration |
protected long |
lastModified
Last modification time |
protected long |
lastModifiedDelay
Delay for sourceLastModified . |
protected ComponentManager |
manager
The component manager |
protected TreeProcessor |
parent
The parent TreeProcessor, if any |
protected SourceResolver |
resolver
The source resolver |
protected RoleManager |
roleManager
The role manager |
protected DelayedRefreshSourceWrapper |
source
The source of the tree definition |
Fields inherited from interface org.apache.cocoon.Processor |
---|
ROLE |
Constructor Summary | |
---|---|
|
TreeProcessor()
Create a TreeProcessor. |
protected |
TreeProcessor(TreeProcessor parent,
ComponentManager manager)
Create a child processor for a given language |
Method Summary | |
---|---|
ProcessingPipeline |
buildPipeline(Environment environment)
Process the given Environment to assemble
a ProcessingPipeline . |
void |
compose(ComponentManager manager)
|
void |
configure(Configuration config)
|
void |
contextualize(Context context)
|
TreeProcessor |
createChildProcessor(ComponentManager manager,
String actualSource,
boolean checkReload)
Create a new child of this processor (used for mounting submaps). |
void |
dispose()
|
Map |
getComponentConfigurations()
Get the sitemap component configurations |
Processor |
getRootProcessor()
Get the root processor parent of this processor. |
boolean |
process(Environment environment)
Process the given Environment producing the output. |
void |
setComponentConfigurations(Configuration componentConfigurations)
Set the sitemap component configurations |
void |
setRoleManager(RoleManager rm)
|
String |
toString()
|
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, wait, wait, wait |
Field Detail |
---|
public static final String COCOON_REDIRECT_ATTR
protected TreeProcessor parent
protected Context context
protected ComponentManager manager
protected RoleManager roleManager
protected ExtendedComponentSelector builderSelector
protected long lastModified
protected DelayedRefreshSourceWrapper source
protected long lastModifiedDelay
sourceLastModified
.
protected Configuration currentLanguage
protected boolean checkReload
protected SourceResolver resolver
Constructor Detail |
---|
public TreeProcessor()
protected TreeProcessor(TreeProcessor parent, ComponentManager manager)
Method Detail |
---|
public TreeProcessor createChildProcessor(ComponentManager manager, String actualSource, boolean checkReload) throws Exception
manager
- the component manager to be used by the child processor.
Exception
public void contextualize(Context context) throws ContextException
contextualize
in interface Contextualizable
ContextException
public void compose(ComponentManager manager) throws ComponentException
compose
in interface Composable
ComponentException
public void setRoleManager(RoleManager rm)
setRoleManager
in interface RoleManageable
public void configure(Configuration config) throws ConfigurationException
configure
in interface Configurable
ConfigurationException
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 ProcessingPipeline buildPipeline(Environment environment) throws Exception
Environment
to assemble
a ProcessingPipeline
.
buildPipeline
in interface Processor
Exception
public Processor getRootProcessor()
Processor
getRootProcessor
in interface Processor
public void setComponentConfigurations(Configuration componentConfigurations)
public Map getComponentConfigurations()
Processor
getComponentConfigurations
in interface Processor
public void dispose()
dispose
in interface Disposable
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |