Paul Crabtree wrote:
> Hi,
>
> I'm trying to get access to the real HttpServletRequest from inside
> Flow because i need to suck in the contents of a post into a Document
> using getInputStream().
>
> There doesnt seem to be a cocoon equivalent and in the
> StreamGenerator, which has similar functionality it gets the real
> request from the ObjectModel, something i cant seem to get either
> from within Flow.
>
> Can anyone suggest a method for doing this?

If you are fine with StreamGenerator,

var resolver =
cocoon.getComponent(Packages.org.apache.excalibur.source.SourceResolver.
ROLE);
var source =
resolver.resolveURI("cocoon:/pipelineContainingStreamGenerator");
var is = source.getInputStream();

should work.

HTH
Guido


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to