cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ovidiu Predescu <ovi...@cup.hp.com>
Subject Re: Proposal: URL Protocols
Date Tue, 30 Jan 2001 17:39:56 GMT
On Tue, 30 Jan 2001 11:37:58 -0500, Berin Loritsch <bloritsch@apache.org> 
wrote:

> Paul Russell wrote:
> > 
> > * Berin Loritsch (bloritsch@apache.org) wrote :
> > > I want to run something by the list regarding the way
> > > Cocoon uses URLs to get references to files and such.
> > > This _does_ affect both versions, and it refers to the
> > > naming of the protocols.  The way Servlet 2.2+ specifies
> > > to get files from the WAR file is the context.getResource()
> > > method.  All resources are relative to the context root.
> > > This is separate and distinct from Classloader Resources.
> > > My proposal is to specify the following Resource protocols:
> > > "resource:" This gets a ClassLoader resource, loaded by
> > >             the Cocoon ClassLoader.  This is what it already
> > >             does.
> > > "context:"  This gets a Context resource, pulled by the
> > >             Context.getResource() method.
> > 
> > Yep. Works for me. +1. How do you propose implementing this? Using the
> > standard URI api I assume?
> 
> That would be the long term plan.  The alternative would be to do
> what is already done in the NetUtils class.  Anyone have experience
> creating URL Handlers?

I posted a patch in October that implements the 'resource' URL handler. Take a
look at it at in the patch queue for Cocoon1.

Ovidiu



Mime
View raw message