org.apache.cocoon.processor.xinclude
Class XIncludeProcessor
java.lang.Object
|
+--org.apache.cocoon.framework.AbstractActor
|
+--org.apache.cocoon.processor.xinclude.XIncludeProcessor
- public class XIncludeProcessor
- extends AbstractActor
- implements Processor, Status
First version of a DOM XInclude parser for cocoon. This has been back ported
from my XInclude filter for cocoon2.
- Version:
- CVS $Revision: 1.5 $ $Date: 2000/05/11 03:27:48 $ $Author: balld $
- Author:
- Donald Ball
Method Summary |
java.lang.String |
getStatus()
Returns information about the status of the implementing class. |
boolean |
hasChanged(java.lang.Object object)
Returns false if the requested resource hasn't changed, true
otherwise. |
void |
init(Director director)
Initialize the actor by indicating their director. |
org.w3c.dom.Document |
process(org.w3c.dom.Document document,
java.util.Dictionary parameters)
Process the DOM tree. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
debug
protected boolean debug
XMLBASE_NAMESPACE_URI
public static final java.lang.String XMLBASE_NAMESPACE_URI
XMLBASE_ATTRIBUTE
public static final java.lang.String XMLBASE_ATTRIBUTE
XINCLUDE_NAMESPACE_URI
public static final java.lang.String XINCLUDE_NAMESPACE_URI
XINCLUDE_INCLUDE_ELEMENT
public static final java.lang.String XINCLUDE_INCLUDE_ELEMENT
XINCLUDE_INCLUDE_ELEMENT_HREF_ATTRIBUTE
public static final java.lang.String XINCLUDE_INCLUDE_ELEMENT_HREF_ATTRIBUTE
XINCLUDE_INCLUDE_ELEMENT_PARSE_ATTRIBUTE
public static final java.lang.String XINCLUDE_INCLUDE_ELEMENT_PARSE_ATTRIBUTE
parser
protected Parser parser
logger
protected Logger logger
context
protected java.lang.Object context
monitor
protected Monitor monitor
monitored_table
protected java.util.Hashtable monitored_table
XIncludeProcessor
public XIncludeProcessor()
init
public void init(Director director)
- Description copied from interface: Actor
- Initialize the actor by indicating their director.
- Overrides:
- init in class AbstractActor
process
public org.w3c.dom.Document process(org.w3c.dom.Document document,
java.util.Dictionary parameters)
throws java.lang.Exception
- Description copied from interface: Processor
- Process the DOM tree. The returned tree is allowed to be either a copy
or the modified input tree.
- Specified by:
- process in interface Processor
getStatus
public java.lang.String getStatus()
- Description copied from interface: Status
- 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.
- Specified by:
- getStatus in interface Status
hasChanged
public boolean hasChanged(java.lang.Object object)
- Description copied from interface: Changeable
- Returns false if the requested resource hasn't changed, true
otherwise. This method is called by the cache system to
ensure the validity of the cached response. It is the
producer responsibility to provide the fastest possible
implementation of this method or, whether this is not
possible and the costs of the change evaluation is
comparable to the production costs, to return
true directly with no further delay, thus reducing
the evaluation overhead to a minimum.
This method is guaranteed to be called after at least
a single call to any production methods getStream or getDocument.
The context is the trigger of the changeable point and may
differ between implementations.
Copyright © 1999-2000 Apache Software Foundation. All Rights Reserved.