org.apache.cocoon.processor.xslt
Class AbstractXSLTProcessor
java.lang.Object
|
+--org.apache.cocoon.processor.xslt.AbstractXSLTProcessor
- Direct Known Subclasses:
- LotusXSLProcessor, OracleXSLProcessor, XSLPProcessor
- public abstract class AbstractXSLTProcessor
- extends java.lang.Object
- implements Actor, Processor, Status, Defaults
This class abstracts the XSL processor interface.
- Version:
- $Revision: 1.3 $ $Date: 1999/10/22 22:19:28 $
- Author:
- Stefano Mazzocchi
Fields inherited from interface org.apache.cocoon.Defaults |
BROWSERS_PROP,
CACHE_DEFAULT,
CACHE_PROP,
COCOON_FORMAT_PI,
COCOON_PROCESS_PI,
DEBUG,
DEFAULT_BROWSER,
FORMATTER_PROP,
INIT_ARG,
INTERNAL_PROPERTIES,
INTERPRETER_PROP,
NAME,
PARSER_DEFAULT,
PARSER_PROP,
PROCESSOR_PROP,
PRODUCER_PROP,
PROPERTIES,
SHOW_STATUS,
STATUS_URL,
STATUS_URL_DEFAULT,
STORE_DEFAULT,
STORE_PROP,
STYLESHEET_PI,
VERBOSE,
VERSION |
Method Summary |
private org.w3c.dom.Document |
getDocument(java.lang.Object resource)
|
org.w3c.dom.Document |
getStylesheet(org.w3c.dom.Document document,
java.util.Dictionary parameters)
Get the stylesheet associated with the given document, based
on the environment and request parameters. |
private java.util.Hashtable |
getStylesheetsForBrowsers(org.w3c.dom.Document document,
java.lang.String path)
|
boolean |
hasChanged(java.lang.Object context)
Returns false if the requested resource hasn't changed, true
otherwise. |
void |
init(Director director)
Initialize the actor by indicating their director. |
Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
toString,
wait,
wait,
wait |
monitor
private Monitor monitor
parser
protected Parser parser
store
protected Store store
AbstractXSLTProcessor
public AbstractXSLTProcessor()
init
public void init(Director director)
- Description copied from interface: Actor
- Initialize the actor by indicating their director.
- Specified by:
- init in interface Actor
getStylesheet
public org.w3c.dom.Document getStylesheet(org.w3c.dom.Document document,
java.util.Dictionary parameters)
throws ProcessorException
- Get the stylesheet associated with the given document, based
on the environment and request parameters. This method
uses the object storage system to store preparsed stylesheets
in memory to be able to speed the transformation of those
files that changed the origin but left the stylesheet unchanged.
hasChanged
public boolean hasChanged(java.lang.Object context)
- 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.
getDocument
private org.w3c.dom.Document getDocument(java.lang.Object resource)
throws java.lang.Exception
getStylesheetsForBrowsers
private java.util.Hashtable getStylesheetsForBrowsers(org.w3c.dom.Document document,
java.lang.String path)
throws java.net.MalformedURLException
Copyright 1999 Java Apache Project. All Rights Reserved.