|
|||||||||||
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.TreeProcessor
Interpreted tree-traversal implementation of a pipeline assembly language.
Nested Class Summary |
Nested classes inherited from class org.apache.cocoon.Processor |
org.apache.cocoon.Processor.InternalPipelineDescription |
Field Summary | |
protected boolean |
checkReload
Check for reload? |
protected boolean |
classReload
Need component classes to be reloaded, due to jci notification? |
protected ConcreteTreeProcessor |
concreteProcessor
The actual processor |
protected long |
lastModified
Last modification time |
protected long |
lastModifiedDelay
Delay for sourceLastModified . |
protected ServiceManager |
manager
The component manager given by the upper level (root manager or parent concrete processor) |
protected TreeProcessor |
parent
The parent TreeProcessor, if any |
protected SourceResolver |
resolver
The source resolver |
protected org.apache.cocoon.configuration.Settings |
settings
The settings. |
protected javax.xml.validation.Schema |
sitemapSchema
The sitemap schema used for validation. |
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,
DelayedRefreshSourceWrapper sitemapSource,
boolean checkReload,
String prefix)
Create a child processor for a given language |
Method Summary | |
org.apache.cocoon.Processor.InternalPipelineDescription |
buildPipeline(org.apache.cocoon.environment.Environment environment)
Process the given Environment to assemble
a ProcessingPipeline . |
void |
configure(Configuration config)
Configure the tree processor: <processor file="{Location of the sitemap}" check-reload="{true|false}" config="{Location of sitemap tree processor config}> <reload delay="10"/> </processor> Only the file attribute is required; everything else is optional. |
TreeProcessor |
createChildProcessor(String src,
boolean configuredCheckReload,
String prefix)
Create a new child of this processor (used for mounting submaps). |
void |
dispose()
|
Object |
getAttribute(String name)
|
String |
getContext()
|
EnvironmentHelper |
getEnvironmentHelper()
The current environment helper used by the MountNode |
org.apache.cocoon.Processor |
getParent()
|
org.apache.cocoon.Processor |
getRootProcessor()
|
org.apache.cocoon.environment.SourceResolver |
getSourceResolver()
|
void |
handleNotification()
|
void |
initialize()
|
boolean |
process(org.apache.cocoon.environment.Environment environment)
Process the given Environment producing the output. |
Object |
removeAttribute(String name)
|
void |
service(ServiceManager serviceManager)
|
void |
setAttribute(String name,
Object value)
|
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 TreeProcessor parent
protected ServiceManager manager
protected org.apache.cocoon.configuration.Settings settings
protected long lastModified
protected DelayedRefreshSourceWrapper source
protected long lastModifiedDelay
sourceLastModified
.
protected boolean checkReload
protected boolean classReload
protected SourceResolver resolver
protected ConcreteTreeProcessor concreteProcessor
protected javax.xml.validation.Schema sitemapSchema
Constructor Detail |
public TreeProcessor()
protected TreeProcessor(TreeProcessor parent, DelayedRefreshSourceWrapper sitemapSource, boolean checkReload, String prefix) throws Exception
Method Detail |
public TreeProcessor createChildProcessor(String src, boolean configuredCheckReload, String prefix) throws Exception
Exception
public void service(ServiceManager serviceManager) throws ServiceException
service
in interface Serviceable
ServiceException
Serviceable.service(org.apache.avalon.framework.service.ServiceManager)
public void initialize() throws Exception
initialize
in interface Initializable
Exception
Initializable.initialize()
public void configure(Configuration config) throws ConfigurationException
configure
in interface Configurable
ConfigurationException
Configurable.configure(org.apache.avalon.framework.configuration.Configuration)
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
public org.apache.cocoon.Processor getRootProcessor()
getRootProcessor
in interface org.apache.cocoon.Processor
Processor.getRootProcessor()
public String getContext()
getContext
in interface org.apache.cocoon.Processor
Processor.getContext()
public org.apache.cocoon.environment.SourceResolver getSourceResolver()
getSourceResolver
in interface org.apache.cocoon.Processor
Processor.getSourceResolver()
public EnvironmentHelper getEnvironmentHelper()
public void dispose()
dispose
in interface Disposable
Disposable.dispose()
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.Processor getParent()
getParent
in interface org.apache.cocoon.Processor
Processor.getParent()
public void handleNotification()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |