cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Russell <p...@luminas.co.uk>
Subject Re: Proposal: URL Protocols
Date Tue, 30 Jan 2001 16:14:35 GMT
* 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?

> The only section that would require any file:// urls is the
> XSP architecture.

For the code generation and compilation, I assume? God I'd like a
java compiler than can take streams to compile with. (better still,
parse trees <grin>)


Paul
-- 
Paul Russell                                 Email:   paul@luminas.co.uk
Technical Director                             Tel:  +44 (0)20 8553 6622
Luminas Internet Applications                  Fax:  +44 (0)870 28 47489
This is not an official statement or order.    Web:    www.luminas.co.uk

Mime
View raw message