|
||||||||
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 boolean |
check_reload
|
protected long |
checkDelay
|
protected java.lang.String |
contextFileName
|
protected java.lang.Exception |
exception
the last error |
protected boolean |
isRegenerationRunning
|
protected org.apache.avalon.framework.component.ComponentManager |
manager
the component manager |
protected ProgramGenerator |
programGenerator
|
protected java.lang.Thread |
regeneration
the regenerating thread |
protected Sitemap |
sitemap
the managed sitemap |
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)
|
void |
release(org.apache.excalibur.source.Source source)
Releases a resolved resource |
Source |
resolve(java.lang.String systemId)
Resolve an entity. |
org.apache.excalibur.source.Source |
resolveURI(java.lang.String location)
Get a Source object. |
org.apache.excalibur.source.Source |
resolveURI(java.lang.String location,
java.lang.String baseURI,
java.util.Map parameters)
Get a Source object. |
void |
run()
Generate the Sitemap class |
void |
setCheckDelay(long delay)
|
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 ProgramGenerator programGenerator
protected SourceHandler sourceHandler
protected java.lang.String sourceFileName
protected Source source
protected java.lang.String contextFileName
protected Sitemap sitemap
protected boolean check_reload
protected java.lang.Thread regeneration
protected volatile boolean isRegenerationRunning
protected java.lang.Exception exception
protected long checkDelay
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)
public void setCheckDelay(long delay)
protected boolean available()
protected boolean hasChanged()
protected boolean isRegenerating()
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 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.public org.apache.excalibur.source.Source resolveURI(java.lang.String location) throws java.net.MalformedURLException, java.io.IOException, org.apache.avalon.framework.component.ComponentException
Source
object.public org.apache.excalibur.source.Source resolveURI(java.lang.String location, java.lang.String baseURI, java.util.Map parameters) throws java.net.MalformedURLException, java.io.IOException, org.apache.avalon.framework.component.ComponentException
Source
object.public void release(org.apache.excalibur.source.Source source)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |