org.apache.cocoon.producer
Class ProducerFromRequest

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

public class ProducerFromRequest
extends AbstractProducer
implements Status

This class implements the producer interface to produce a document based on stringdata that is stored in the HttpServletRequest. The getReader() method is used to obtain a reader on the data from the HttpServletRequest.

Version:
$Revision: 1.2 $ $Date: 2000/02/13 18:29:41 $
Author:
Gerrit Hiddink

Fields inherited from class org.apache.cocoon.producer.AbstractProducer
context, parser
 
Fields inherited from class org.apache.cocoon.framework.AbstractActor
director
 
Constructor Summary
ProducerFromRequest()
           
 
Method Summary
 java.lang.String getPath(javax.servlet.http.HttpServletRequest request)
          Returns the path where the resource is found, or an empty string if no path can be applied to the resource.
 java.lang.String getStatus()
          Returns information about the status of the implementing class.
 java.io.Reader getStream(javax.servlet.http.HttpServletRequest request)
          Return a reader to the data of the HttpRequest.
 
Methods inherited from class org.apache.cocoon.producer.AbstractProducer
getDocument, hasChanged, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProducerFromRequest

public ProducerFromRequest()
Method Detail

getStream

public java.io.Reader getStream(javax.servlet.http.HttpServletRequest request)
                         throws java.io.IOException
Return a reader to the data of the HttpRequest.

getPath

public java.lang.String getPath(javax.servlet.http.HttpServletRequest request)
Description copied from interface: Producer
Returns the path where the resource is found, or an empty string if no path can be applied to the resource. Warning, null values are not valid.

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.
Specified by:
getStatus in interface Status


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