org.bibop.xml.xforge.helpers
Class XForgeC1Processor

java.lang.Object
  |
  +--org.bibop.xml.AbstractSAXProcessor
        |
        +--org.bibop.xml.xforge.XForgeProcessor
              |
              +--org.bibop.xml.xforge.helpers.XForgeC1Processor
All Implemented Interfaces:
org.apache.cocoon.framework.Actor, org.apache.cocoon.framework.Changeable, org.apache.cocoon.framework.Configurable, org.apache.avalon.framework.configuration.Configurable, org.xml.sax.ContentHandler, org.apache.cocoon.Defaults, DOMProcessor, org.xml.sax.ext.LexicalHandler, org.apache.avalon.framework.logger.LogEnabled, PrefixesMonitor, org.apache.cocoon.processor.Processor, Processor, SAXProcessor, XMLConsumer, XMLProducer

public class XForgeC1Processor
extends XForgeProcessor
implements org.apache.cocoon.processor.Processor, org.apache.cocoon.framework.Configurable, org.apache.cocoon.Defaults

The main entry point for the x:forge framework.

IMPORTANT:

Uncomment the lines followed by "(1)" if you don't want to patch your Cocoon 1.
Patch to apply to Cocoon:
 Start/End RequestContext scope when really starts/ends.
Reason:
 If you use xforge more than once per Request, the component monitors  of the first time are erased.
Example:
 <?cocoon-process type="xforge"?> (Components processed will not be monitored)
 <?cocoon-process type="xinclude"?>
 <?cocoon-process type="xforge"?> (Just this Components processed are monitored)

Version:
1.0
Author:
Alberto Garoffolo

Field Summary
private  int loglevel
           
 
Fields inherited from class org.bibop.xml.xforge.XForgeProcessor
DEFAULT_ENCODING, lastifresult, log, XFORGE_CONTEXTS_XMLNS_URI, XFORGE_DEFAULT_CONTEXT_CLASS, XFORGE_DEFAULT_VARIABLES_CONTEXT, XFORGE_NAME, XFORGE_XMLNS_AUTOMATION_URI, XFORGE_XMLNS_URI
 
Fields inherited from class org.bibop.xml.AbstractSAXProcessor
contentHandler, lexicalHandler
 
Fields inherited from interface org.apache.cocoon.Defaults
BROWSERS_PROP, CACHE_DEFAULT, CACHE_PROP, COCOON_FORMAT_PI, COCOON_PROCESS_PI, DEFAULT_BROWSER, ERROR_INTERNALLY, FORMATTER_PROP, HOME, INIT_ARG, INTERPRETER_PROP, LOG, LOG_LEVEL, LOOPS, NAME, OUTPUTTING, PARSER_DEFAULT, PARSER_PROP, PROCESSOR_PROP, PRODUCER_PROP, PROFILER_DEFAULT, PROFILER_PROP, PROPERTIES, SHOW_STATUS, STATUS_URL, STATUS_URL_DEFAULT, STORE_DEFAULT, STORE_PROP, STYLESHEET_PI, TRANSFORMER_DEFAULT, TRANSFORMER_PROP, VERSION, WHOLE_REQUEST, YEAR
 
Constructor Summary
XForgeC1Processor()
           
 
Method Summary
 boolean hasChanged(java.lang.Object context)
           
 void init(org.apache.cocoon.framework.Configurations conf)
           
 void init(org.apache.cocoon.framework.Director director)
           
private  void initLogger()
           
private  org.apache.log.Priority logLevel2Priority(int level)
           
 org.w3c.dom.Document process(org.w3c.dom.Document document, java.util.Dictionary parameters)
           
 
Methods inherited from class org.bibop.xml.xforge.XForgeProcessor
characters, comment, configure, debug, enableLogging, endCDATA, endDocument, endDTD, endElement, endEntity, endPrefixMapping, getActivePrefixes, getVariableValue, getVariableValue, ignorableWhitespace, process, processingInstruction, resetIf, setDocumentLocator, setParentPrefixesMonitor, setProcessingOptions, setVariableValue, setVariableValue, skippedEntity, startCDATA, startDocument, startDTD, startElement, startEntity, startPrefixMapping
 
Methods inherited from class org.bibop.xml.AbstractSAXProcessor
setConsumer, setContentHandler, setLexicalHandler, toSax
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

loglevel

private int loglevel
Constructor Detail

XForgeC1Processor

public XForgeC1Processor()
Method Detail

process

public org.w3c.dom.Document process(org.w3c.dom.Document document,
                                    java.util.Dictionary parameters)
                             throws java.lang.Exception
Specified by:
process in interface org.apache.cocoon.processor.Processor
java.lang.Exception

init

public void init(org.apache.cocoon.framework.Director director)
Specified by:
init in interface org.apache.cocoon.framework.Actor

hasChanged

public boolean hasChanged(java.lang.Object context)
Specified by:
hasChanged in interface org.apache.cocoon.framework.Changeable

init

public void init(org.apache.cocoon.framework.Configurations conf)
          throws org.apache.cocoon.framework.InitializationException
Specified by:
init in interface org.apache.cocoon.framework.Configurable
org.apache.cocoon.framework.InitializationException

initLogger

private void initLogger()

logLevel2Priority

private org.apache.log.Priority logLevel2Priority(int level)


Copyright 2003 Bibop Research International. All Rights Reserved.