|
||||||||||
| 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.ComposerGenerator
org.apache.cocoon.generation.ServletGenerator
org.apache.cocoon.generation.AbstractServerPage
public abstract class 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, 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, 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 |
long |
generateKey()
Generates the unique key. |
CacheValidity |
generateValidity()
Generate the validity object. |
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 |
void |
recompose(ComponentManager manager)
Recompose with the actual ComponentManager that should
be used. |
protected void |
start(String name,
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.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.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 File[] dependencies
| Constructor Detail |
|---|
public AbstractServerPage()
| Method Detail |
|---|
public void recompose(ComponentManager manager)
throws ComponentException
ComponentManager that should
be used.
recompose in interface RecomposableComponentExceptionpublic boolean modifiedSince(long date)
modifiedSince in interface Modifiablepublic 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 CacheableProcessingComponentnull if the component
is currently not cacheable.public SourceValidity getValidity()
getValidity in interface CacheableProcessingComponentNOPCacheValidity
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 value
protected 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
SAXExceptionpublic long generateKey()
generateKey in interface Cacheablepublic CacheValidity generateValidity()
generateValidity in interface CacheableNOPCacheValidity
is the default if hasContentChange() gives false otherwise
null will be returned.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||