cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ralph Goers <Ralph.Go...@digitalinsight.com>
Subject RE: call sitemap from Java?
Date Tue, 02 Mar 2004 05:45:28 GMT
>From Java you can use:
Source source = SourceUtil.getSource(resource, null, parameters, resolver);
Document doc = SourceUtil.toDom(source);

For a complete example of this take a look at the PipelineAuthenticator
class in the authentication-fw block.  

Ralph

-----Original Message-----
From: Mark Lundquist
To: users@cocoon.apache.org
Sent: 3/1/2004 7:08 PM
Subject: Re: call sitemap from Java?


On Mar 1, 2004, at 6:41 PM, I wrote:

>
> Hi,
>
> I would like to be able to do something like 
> cocoon.processPipelineTo(), but from within a Java class instead of 
> flowscript.
>
> Can I do that?
>
> Thanks a lot,
> Mark

hmmm... since the Cocoon URIResolver is in effect, then something like

	(new URL("cocoon://whatever")).openConnection().getInputStream()

yields a stream that I can do whatever with, right?

~ml


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message