Cocoon API: Class DCPEngine

org.apache.cocoon.processor.dcp
Class DCPEngine

java.lang.Object
  |
  +--org.apache.cocoon.processor.dcp.DCPEngine

public class DCPEngine
extends java.lang.Object

This class implements a DOM processor that evaluates <?dcp? > processing instructions to generate dynamic content.

The following processing instructions are recognized:

Version:
$Revision: 1.6 $ $Date: 2000/03/19 00:59:32 $
Author:
Ricardo Rocha

Constructor Summary
DCPEngine(org.w3c.dom.Document document, InterpreterFactory factory, java.util.Dictionary parameters)
          Set the document being processed and any parameters passed by the invoking environment.
 
Method Summary
 void process()
          Process the document substituting <?dcp?> processing instructions by dynamic content.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DCPEngine

public DCPEngine(org.w3c.dom.Document document,
                 InterpreterFactory factory,
                 java.util.Dictionary parameters)
Set the document being processed and any parameters passed by the invoking environment.

This method sets the DOM tree to be scanned for dynamic content <?dcp?> processing instructions as well as the context parameters provided by the invoking environment.

Parameters:
document - The document to be processed for dynamic content
parameters - The table of environment variables to be used during processing
Method Detail

process

public void process()
             throws java.lang.Exception
Process the document substituting <?dcp?> processing instructions by dynamic content.

This method carries out the actual expansion of dynamic content processing instructions embedded in the document.

Throws:
java.lang.Exception - When any error occurs during processing


Copyright 1999-2001 Apache Software Foundation. All Rights Reserved.