org.bibop.xml.xforge.helpers
Class XForgeC2Transformer

java.lang.Object
  |
  +--org.bibop.xml.AbstractSAXProcessor
        |
        +--org.bibop.xml.xforge.XForgeProcessor
              |
              +--org.bibop.xml.xforge.helpers.XForgeC2Transformer
All Implemented Interfaces:
org.apache.avalon.framework.component.Component, org.apache.avalon.framework.configuration.Configurable, org.xml.sax.ContentHandler, DOMProcessor, org.xml.sax.ext.LexicalHandler, org.apache.avalon.framework.logger.LogEnabled, org.apache.avalon.excalibur.pool.Poolable, PrefixesMonitor, Processor, org.apache.avalon.excalibur.pool.Recyclable, SAXProcessor, org.apache.cocoon.sitemap.SitemapModelComponent, org.apache.cocoon.transformation.Transformer, org.apache.cocoon.xml.XMLConsumer, XMLConsumer, org.apache.cocoon.xml.XMLPipe, XMLProducer, org.apache.cocoon.xml.XMLProducer

public class XForgeC2Transformer
extends XForgeProcessor
implements org.apache.cocoon.transformation.Transformer, org.apache.avalon.excalibur.pool.Recyclable, org.apache.avalon.framework.configuration.Configurable

The main entry point for the x:forge framework in a Cocoon 2 environment.

Version:
1.0
Author:
Alberto Garoffolo, Gianugo Rabellino

Field Summary
private  XForgeContext context
           
private  XForgeContext requestcontext
           
private  XForgeContext threadcontext
           
 
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.transformation.Transformer
ROLE
 
Constructor Summary
XForgeC2Transformer()
           
 
Method Summary
 void configure(org.apache.avalon.framework.configuration.Configuration conf)
          Configures the application based on a Avalon Configuration object.
 void recycle()
           
 void setConsumer(org.apache.cocoon.xml.XMLConsumer consumer)
          Set the XMLConsumer that will receive XML data.
 void setup(org.apache.cocoon.environment.SourceResolver resolver, java.util.Map parameters, java.lang.String source, org.apache.avalon.framework.parameters.Parameters par)
           
 
Methods inherited from class org.bibop.xml.xforge.XForgeProcessor
characters, comment, 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
 
Methods inherited from interface org.xml.sax.ContentHandler
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping
 
Methods inherited from interface org.xml.sax.ext.LexicalHandler
comment, endCDATA, endDTD, endEntity, startCDATA, startDTD, startEntity
 

Field Detail

context

private XForgeContext context

requestcontext

private XForgeContext requestcontext

threadcontext

private XForgeContext threadcontext
Constructor Detail

XForgeC2Transformer

public XForgeC2Transformer()
Method Detail

recycle

public void recycle()
Specified by:
recycle in interface org.apache.avalon.excalibur.pool.Recyclable

setConsumer

public void setConsumer(org.apache.cocoon.xml.XMLConsumer consumer)
Set the XMLConsumer that will receive XML data.

Specified by:
setConsumer in interface org.apache.cocoon.xml.XMLProducer

setup

public void setup(org.apache.cocoon.environment.SourceResolver resolver,
                  java.util.Map parameters,
                  java.lang.String source,
                  org.apache.avalon.framework.parameters.Parameters par)
           throws org.apache.cocoon.ProcessingException,
                  org.xml.sax.SAXException,
                  java.io.IOException
Specified by:
setup in interface org.apache.cocoon.sitemap.SitemapModelComponent
org.apache.cocoon.ProcessingException
org.xml.sax.SAXException
java.io.IOException

configure

public void configure(org.apache.avalon.framework.configuration.Configuration conf)
               throws org.apache.avalon.framework.configuration.ConfigurationException
Description copied from class: XForgeProcessor
Configures the application based on a Avalon Configuration object. A typical XForge configuration would look like this:
   <?xml version="1.0"?>
   <xforge>
     <components>
       <component role="process">
         <component-instance name="HelloWorld"
           class="org.bibop.xml.xforge.component.examples.HelloWorldComponent" />
       </component>
     </components>
   </xforge>
 

Specified by:
configure in interface org.apache.avalon.framework.configuration.Configurable
Overrides:
configure in class XForgeProcessor
Parameters:
conf - An Avalon Configuration Object
Throws:
org.apache.avalon.framework.configuration.ConfigurationException - Exception due to misconfiguration


Copyright 2003 Bibop Research International. All Rights Reserved.