org.apache.cocoon.producer
Class ProducerFromMap

java.lang.Object
  |
  +--org.apache.cocoon.framework.AbstractActor
        |
        +--org.apache.cocoon.producer.AbstractProducer
              |
              +--org.apache.cocoon.producer.ProducerFromFile
                    |
                    +--org.apache.cocoon.producer.ProducerFromMap

public class ProducerFromMap
extends ProducerFromFile

Version:
$Revision: 1.4 $ $Date: 2000/01/15 11:19:21 $
Author:
Donald Ball

Fields inherited from class org.apache.cocoon.producer.AbstractProducer
context
 
Fields inherited from class org.apache.cocoon.framework.AbstractActor
director
 
Constructor Summary
ProducerFromMap()
           
 
Method Summary
 org.w3c.dom.Document getDocument(javax.servlet.http.HttpServletRequest request)
          This method is the only one called by the Cocoon engine.
 org.w3c.dom.Document getDocument(Parser parser, org.w3c.dom.Document sitemap, org.w3c.dom.Element url_element, java.lang.String path, java.lang.String relative_url)
           
 java.lang.String getStatus()
          Returns information about the status of the implementing class.
 
Methods inherited from class org.apache.cocoon.producer.ProducerFromFile
getPath, getStream, hasChanged
 
Methods inherited from class org.apache.cocoon.producer.AbstractProducer
init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProducerFromMap

public ProducerFromMap()
Method Detail

getDocument

public org.w3c.dom.Document getDocument(javax.servlet.http.HttpServletRequest request)
                                 throws java.lang.Exception
Description copied from class: AbstractProducer
This method is the only one called by the Cocoon engine. Producers are allowed to create streams and this class "mediates" translating these streams into DOM trees. For producers willing to generate DOM trees automatically, they should override this method and may well ignore to implement the getStream() method since it's never called directly by Cocoon.
Overrides:
getDocument in class AbstractProducer

getDocument

public org.w3c.dom.Document getDocument(Parser parser,
                                        org.w3c.dom.Document sitemap,
                                        org.w3c.dom.Element url_element,
                                        java.lang.String path,
                                        java.lang.String relative_url)
                                 throws java.lang.Exception

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.
Overrides:
getStatus in class ProducerFromFile


Copyright © 1999-2000 Apache Software Foundation. All Rights Reserved.