|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.avalon.framework.logger.AbstractLoggable | +--org.apache.cocoon.sitemap.Handler
Handles the manageing and stating of one Sitemap
Field Summary | |
protected java.lang.String |
basePath
the sitemaps base path |
protected boolean |
check_reload
|
protected Source |
contextSource
|
protected java.lang.Exception |
exception
the last error |
protected boolean |
isRegenerationRunning
|
protected org.apache.avalon.framework.component.ComponentManager |
manager
the component manager |
protected java.lang.Thread |
regeneration
the regenerating thread |
protected Sitemap |
sitemap
the managed sitemap |
protected static long |
sitemapCheckDelay
|
protected Source |
source
|
protected java.lang.String |
sourceFileName
the source of this sitemap |
protected SourceHandler |
sourceHandler
The source handler for the sitemap components |
Fields inherited from interface org.apache.cocoon.Processor |
ROLE |
Constructor Summary | |
Handler()
|
Method Summary | |
protected boolean |
available()
|
void |
compose(org.apache.avalon.framework.component.ComponentManager manager)
Composable |
void |
contextualize(org.apache.avalon.framework.context.Context context)
Contextualizable |
void |
dispose()
dispose |
java.lang.Exception |
getException()
|
protected boolean |
hasChanged()
|
protected boolean |
isRegenerating()
|
boolean |
process(Environment environment)
Process the given Environment producing the output. |
boolean |
process(Environment environment,
StreamPipeline pipeline,
EventPipeline eventPipeline)
Process the given Environment to assemble
a StreamPipeline and an EventPipeline . |
protected void |
regenerate(Environment environment)
|
protected void |
regenerateAsynchronously(Environment environment)
|
Source |
resolve(java.lang.String systemId)
Resolve an entity. |
void |
run()
Generate the Sitemap class |
void |
setBasePath(java.lang.String basePath)
|
void |
setCheckReload(boolean check_reload)
|
void |
setSourceFileName(java.lang.String sourceFileName)
|
void |
throwEventualException()
|
Methods inherited from class org.apache.avalon.framework.logger.AbstractLoggable |
getLogger, setLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected org.apache.avalon.framework.component.ComponentManager manager
protected java.lang.String sourceFileName
protected Source source
protected java.lang.Exception exception
protected Sitemap sitemap
protected boolean check_reload
protected java.lang.Thread regeneration
protected volatile boolean isRegenerationRunning
protected Source contextSource
protected java.lang.String basePath
protected SourceHandler sourceHandler
protected static long sitemapCheckDelay
Constructor Detail |
public Handler()
Method Detail |
public void contextualize(org.apache.avalon.framework.context.Context context) throws org.apache.avalon.framework.context.ContextException
contextualize
in interface org.apache.avalon.framework.context.Contextualizable
public void compose(org.apache.avalon.framework.component.ComponentManager manager) throws org.apache.avalon.framework.component.ComponentException
compose
in interface org.apache.avalon.framework.component.Composable
public void setSourceFileName(java.lang.String sourceFileName)
public void setCheckReload(boolean check_reload)
protected boolean available()
protected boolean hasChanged()
protected boolean isRegenerating()
protected void regenerateAsynchronously(Environment environment) throws java.lang.Exception
protected void regenerate(Environment environment) throws java.lang.Exception
public boolean process(Environment environment) throws java.lang.Exception
Processor
Environment
producing the output.process
in interface Processor
org.apache.cocoon.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 resetpublic boolean process(Environment environment, StreamPipeline pipeline, EventPipeline eventPipeline) throws java.lang.Exception
Processor
Environment
to assemble
a StreamPipeline
and an EventPipeline
.process
in interface Processor
public void setBasePath(java.lang.String basePath)
public void run()
run
in interface java.lang.Runnable
public void throwEventualException() throws java.lang.Exception
public java.lang.Exception getException()
public void dispose()
dispose
in interface org.apache.avalon.framework.activity.Disposable
public Source resolve(java.lang.String systemId) throws ProcessingException, org.xml.sax.SAXException, java.io.IOException
resolve
in interface SourceResolver
org.apache.cocoon.environment.SourceResolver
systemID
- This is either a system identifier
(java.net.URL
or a local file.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |