Title: HttpRequest

Hi

I want to access the  HttpRequest .getInputStream() method in my custom-made
generator class which extends Composer Generator.

For this i do the following in my code:

Since in the generator we have objectModel available, i get the request obejct from it

org.apache.cocoon.environment.Request request = ObjectModelHelper.getRequest(objectModel);

When i typecast the request object to org.apache.cocoon.environment.http.HttpRequest it gives me an error :
java.lang.ClassCastException: org.apache.cocoon.environment.wrapper.RequestWrapper

The org.apache.cocoon.environment.Request does not provide a getInputSteam() method, hence i was type casting it to HttpRequest methid to get the input stream.

Is there any otherway of doing it. ???


Help !!!!
Kavita





____________________________________________________
            INTIQUA International       
    Intelligent Solutions, Quality Execution
____________________________________________________
 
Note: The information and data contained in this message (and attachments) may be privileged and confidential and protected from disclosure to any party or parties apart from the intended recipient. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer.


Reply via email to