This class implements a DOM processor that expands XML documents
replacing dynamic content generation processing instructions by the return
value of user-supplied logic.
getStatus()
Returns information about the status of the implementing class.
boolean
hasChanged(java.lang.Object context)
This method is called by the cache system to evaluate the status
of this changeable point for the given context
(normally an HTTP request).
org.w3c.dom.Document
process(org.w3c.dom.Document document,
java.util.Dictionary parameters)
This method scans a DOM tree replacing <?dcp?> processing instructions
by dynamic content generated by user-supplied programs.
Methods inherited from class org.apache.cocoon.framework.AbstractActor
public org.w3c.dom.Document process(org.w3c.dom.Document document,
java.util.Dictionary parameters)
throws java.lang.Exception
This method scans a DOM tree replacing <?dcp?> processing instructions
by dynamic content generated by user-supplied programs. These programs are
dynamically loaded according to directives contained in <?dcp-object?>
processing instructions.
document - The document to be processed for dynamic content
parameters - The table of invocation environment variables to be used during processing
Returns:
The expanded document
Throws:
java.lang.Exception - When any error occurs during processing
hasChanged
public boolean hasChanged(java.lang.Object context)
This method is called by the cache system to evaluate the status
of this changeable point for the given context
(normally an HTTP request). Since even if the scripts didn't change
we can't assume anything about it, this method is today
left unimplemented (it always returns "true") but should call
similar hooks inside the DCP components if available.
Returns information about the status of the implementing class.
Note: this is use instead of the usual toString()
method because some of these methods are declared final in some
classes in JDK 1.1.