|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.xml.AbstractXMLProducer
org.apache.cocoon.generation.AbstractGenerator
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 File[] |
dependencies
The dependency file list |
Fields inherited from class org.apache.cocoon.generation.ServletGenerator |
context, manager, request, response |
Fields inherited from class org.apache.cocoon.generation.AbstractGenerator |
objectModel, parameters, resolver, source |
Fields inherited from class org.apache.cocoon.xml.AbstractXMLProducer |
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer |
Fields inherited from interface org.apache.cocoon.generation.Generator |
ROLE |
Constructor Summary | |
AbstractServerPage()
|
Method Summary | |
protected void |
attribute(AttributesImpl attr,
String name,
String value)
Add an attribute |
protected void |
characters(String data)
Add character data |
protected void |
comment(String data)
Add a comment |
protected void |
end(String name)
End an element |
Serializable |
getKey()
Generate the unique key. |
SourceValidity |
getValidity()
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 |
protected void |
start(String name,
AttributesImpl attr)
Start an element |
Methods inherited from class org.apache.cocoon.generation.ServletGenerator |
dispose, recycle, service, setup |
Methods inherited from class org.apache.cocoon.xml.AbstractXMLProducer |
setConsumer, setContentHandler, setLexicalHandler |
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
enableLogging, getLogger, 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.cocoon.generation.Generator |
generate |
Methods inherited from interface org.apache.cocoon.xml.XMLProducer |
setConsumer |
Field Detail |
protected long dateCreated
protected File[] dependencies
Constructor Detail |
public AbstractServerPage()
Method Detail |
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 Serializable getKey()
getKey
in interface CacheableProcessingComponent
null
if the component
is currently not cacheable.public SourceValidity getValidity()
getValidity
in interface CacheableProcessingComponent
NOPCacheValidity
is the default if hasContentChange() gives false otherwise
null
will be returned.protected void attribute(AttributesImpl attr, String name, String value)
attr
- The attribute list to add toname
- The attribute namevalue
- The attribute valueprotected void start(String name, AttributesImpl attr) throws SAXException
name
- The element nameattr
- The element attributes
SAXException
protected void end(String name) throws SAXException
name
- The element name
SAXException
protected void characters(String data) throws SAXException
data
- The character data
SAXException
protected void comment(String data) throws SAXException
data
- The comment data
SAXException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |