Save This Page
Home » cocoon-2.1.11-src » org.apache » cocoon » generation » [javadoc | source]
org.apache.cocoon.generation
abstract public class: AbstractServerPage [javadoc | source]
java.lang.Object
   org.apache.avalon.framework.logger.AbstractLogEnabled
      org.apache.cocoon.xml.AbstractXMLProducer
         org.apache.cocoon.generation.AbstractGenerator
            org.apache.cocoon.generation.ComposerGenerator
               org.apache.cocoon.generation.ServletGenerator
                  org.apache.cocoon.generation.AbstractServerPage

All Implemented Interfaces:
    Cacheable, CacheableProcessingComponent, CompiledComponent, org.apache.avalon.framework.component.Recomposable, org.apache.avalon.framework.activity.Disposable, org.apache.avalon.framework.component.Composable, Generator, org.apache.avalon.excalibur.pool.Recyclable, XMLProducer

Direct Known Subclasses:
    PythonGenerator, XSPGenerator, JSGenerator

Base implementation of ServerPagesGenerator. This class declares variables that must be explicitly initialized by code generators.
Field Summary
protected  long dateCreated    The creation date 
protected  File[] dependencies    The dependency file list 
Fields inherited from org.apache.cocoon.generation.ServletGenerator:
request,  response,  context
Fields inherited from org.apache.cocoon.generation.ComposerGenerator:
manager
Fields inherited from org.apache.cocoon.generation.AbstractGenerator:
resolver,  objectModel,  parameters,  source
Fields inherited from org.apache.cocoon.xml.AbstractXMLProducer:
EMPTY_CONTENT_HANDLER,  xmlConsumer,  contentHandler,  lexicalHandler
Method from org.apache.cocoon.generation.AbstractServerPage Summary:
attribute,   characters,   comment,   end,   generateKey,   generateValidity,   getKey,   getValidity,   hasContentChanged,   modifiedSince,   recompose,   start
Methods from org.apache.cocoon.generation.ServletGenerator:
recycle,   setup
Methods from org.apache.cocoon.generation.ComposerGenerator:
compose,   dispose
Methods from org.apache.cocoon.generation.AbstractGenerator:
recycle,   setup
Methods from org.apache.cocoon.xml.AbstractXMLProducer:
recycle,   setConsumer,   setContentHandler,   setLexicalHandler
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.cocoon.generation.AbstractServerPage Detail:
 protected  void attribute(AttributesImpl attr,
    String name,
    String value) 
    Add an attribute
 protected  void characters(String data) throws SAXException 
    Add character data
 protected  void comment(String data) throws SAXException 
    Add a comment
 protected  void end(String name) throws SAXException 
    End an element
 public long generateKey() 
    Generates the unique key. This key must be unique inside the space of this component. Users may override this method to take advantage of SAX event cacheing
 public CacheValidity generateValidity() 
    Generate the validity object.
 public Serializable getKey() 
    Generate the unique key. This key must be unique inside the space of this component. This method must be invoked before the generateValidity() method.
 public SourceValidity getValidity() 
    Generate the validity object. Before this method can be invoked the generateKey() method must be invoked.
 public boolean hasContentChanged(Request request) 
    Determines whether generated content has changed since last invocation. Users may override this method to take advantage of SAX event cacheing
 public boolean modifiedSince(long date) 
    Determines whether this generator's source files have changed
 public  void recompose(ComponentManager manager) throws ComponentException 
    Recompose with the actual ComponentManager that should be used.
 protected  void start(String name,
    AttributesImpl attr) throws SAXException 
    Start an element