org.apache.cocoon.generation
Class HTMLGenerator
java.lang.Object
|
+--org.apache.avalon.framework.logger.AbstractLoggable
|
+--org.apache.cocoon.xml.AbstractXMLProducer
|
+--org.apache.cocoon.generation.AbstractGenerator
|
+--org.apache.cocoon.generation.ComposerGenerator
|
+--org.apache.cocoon.generation.HTMLGenerator
- All Implemented Interfaces:
- Cacheable, org.apache.avalon.framework.component.Component, org.apache.avalon.framework.component.Composable, Generator, org.apache.avalon.framework.logger.Loggable, org.apache.avalon.excalibur.pool.Poolable, org.apache.avalon.excalibur.pool.Recyclable, SitemapModelComponent, XMLProducer
- public class HTMLGenerator
- extends ComposerGenerator
- implements Cacheable, org.apache.avalon.excalibur.pool.Recyclable
- Version:
- CVS $Revision: 1.4.2.14 $ $Date: 2001/11/26 15:04:20 $
- Author:
- Davanum Srinivas, Carsten Ziegeler
Fields inherited from interface org.apache.cocoon.generation.Generator |
ROLE |
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 |
HTMLGenerator
public HTMLGenerator()
recycle
public void recycle()
- Recycle this component.
All instance variables are set to
null
.
- Specified by:
recycle
in interface org.apache.avalon.excalibur.pool.Recyclable
- Overrides:
recycle
in class AbstractGenerator
setup
public void setup(SourceResolver resolver,
java.util.Map objectModel,
java.lang.String src,
org.apache.avalon.framework.parameters.Parameters par)
throws ProcessingException,
org.xml.sax.SAXException,
java.io.IOException
- Setup the html generator.
Try to get the last modification date of the source for caching.
- Overrides:
setup
in class AbstractGenerator
generateKey
public long generateKey()
- Generate the unique key.
This key must be unique inside the space of this component.
This method must be invoked before the generateValidity() method.
- Specified by:
generateKey
in interface Cacheable
- Returns:
- The generated key or
0
if the component
is currently not cacheable.
generateValidity
public CacheValidity generateValidity()
- Generate the validity object.
Before this method can be invoked the generateKey() method
must be invoked.
- Specified by:
generateValidity
in interface Cacheable
- Returns:
- The generated validity object or
null
if the
component is currently not cacheable.
generate
public void generate()
throws java.io.IOException,
org.xml.sax.SAXException,
ProcessingException
- Generate XML data.
Copyright © 1999-2001 Apache Software Foundation. All Rights Reserved.