|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.ServletGenerator | +--org.apache.cocoon.generation.AbstractServerPage
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 java.io.File[] |
dependencies
The dependency file list |
Fields inherited from class org.apache.cocoon.generation.ServletGenerator |
context, request, response |
Fields inherited from class org.apache.cocoon.generation.ComposerGenerator |
manager |
Fields inherited from class org.apache.cocoon.generation.AbstractGenerator |
objectModel, parameters, resolver, source |
Fields inherited from class org.apache.cocoon.xml.AbstractXMLProducer |
contentHandler, lexicalHandler, xmlConsumer |
Fields inherited from interface org.apache.cocoon.generation.Generator |
ROLE |
Constructor Summary | |
AbstractServerPage()
|
Method Summary | |
protected void |
attribute(org.xml.sax.helpers.AttributesImpl attr,
java.lang.String name,
java.lang.String value)
Add an attribute |
protected void |
characters(java.lang.String data)
Add character data |
protected void |
comment(java.lang.String data)
Add a comment |
protected void |
end(java.lang.String name)
End an element |
long |
generateKey()
Generates the unique key. |
CacheValidity |
generateValidity()
Generate the validity object. |
boolean |
hasContentChanged(Request request)
Determines whether generated content has changed since last invocation. |
boolean |
modifiedSince(long date)
Determines whether this generator's source files have changed |
void |
recompose(org.apache.avalon.framework.component.ComponentManager manager)
Recompose with the actual ComponentManager that should
be used. |
protected void |
start(java.lang.String name,
org.xml.sax.helpers.AttributesImpl attr)
Start an element |
Methods inherited from class org.apache.cocoon.generation.ServletGenerator |
recycle, setup |
Methods inherited from class org.apache.cocoon.generation.ComposerGenerator |
compose, dispose |
Methods inherited from class org.apache.cocoon.xml.AbstractXMLProducer |
setConsumer, setContentHandler, setLexicalHandler |
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 |
Methods inherited from interface org.apache.avalon.framework.component.Composable |
compose |
Methods inherited from interface org.apache.cocoon.generation.Generator |
generate |
Methods inherited from interface org.apache.cocoon.xml.XMLProducer |
setConsumer |
Field Detail |
protected long dateCreated
protected java.io.File[] dependencies
Constructor Detail |
public AbstractServerPage()
Method Detail |
public void recompose(org.apache.avalon.framework.component.ComponentManager manager) throws org.apache.avalon.framework.component.ComponentException
ComponentManager
that should
be used.
recompose
in interface org.apache.avalon.framework.component.Recomposable
org.apache.avalon.framework.component.ComponentException
public boolean modifiedSince(long date)
modifiedSince
in interface Modifiable
public boolean hasContentChanged(Request request)
request
- The request whose data must be inspected to assert whether
dynamically generated content has changed
public long generateKey()
generateKey
in interface Cacheable
public CacheValidity generateValidity()
generateValidity
in interface Cacheable
NOPCacheValidity
is the default if hasContentChange() gives false otherwise
null
will be returned.protected void attribute(org.xml.sax.helpers.AttributesImpl attr, java.lang.String name, java.lang.String value)
attr
- The attribute list to add toname
- The attribute namevalue
- The attribute valueprotected void start(java.lang.String name, org.xml.sax.helpers.AttributesImpl attr) throws org.xml.sax.SAXException
name
- The element nameattr
- The element attributes
org.xml.sax.SAXException
protected void end(java.lang.String name) throws org.xml.sax.SAXException
name
- The element name
org.xml.sax.SAXException
protected void characters(java.lang.String data) throws org.xml.sax.SAXException
data
- The character data
org.xml.sax.SAXException
protected void comment(java.lang.String data) throws org.xml.sax.SAXException
data
- The comment data
org.xml.sax.SAXException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |