From paul@redfork.com Tue May 2 04:27:11 2000
Return-Path:
Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm
Delivered-To: mailing list cocoon-dev@xml.apache.org
Received: (qmail 32459 invoked from network); 2 May 2000 04:27:11 -0000
Received: from unknown (HELO zephyr2.olrcorp.com) (208.45.158.61)
by locus.apache.org with SMTP; 2 May 2000 04:27:11 -0000
Received: from paulhome2000 (cx156042-a.okc1.ok.home.com [24.9.13.136]) by zephyr2.olrcorp.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21)
id J0FD1BBG; Mon, 1 May 2000 23:27:11 -0500
Message-ID: <002d01bfb3ee$7ea20940$880d0918@paulhome2000>
From: "Paul Lamb"
To:
References: <38FC87B2.B7F4FAFA@postoffice.pacbell.net> <003601bfb124$eaa3b700$880d0918@paulhome2000>
Subject: cocoon & resource interfaces
Date: Mon, 1 May 2000 23:25:49 -0500
MIME-Version: 1.0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.00.2919.6700
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700
X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N
I've been working thru changes for cocoon 1.7x that would enable resource
access instead of the current file and url scheme in the XSP and XSLT
processors--this allows much better integration with the current servlet
containers. But this doesn't really come out very clean or pretty in the
current 1.7x.
So, I started looking at cocoon2 and noticed that it is better, but still
doesn't have a Resource concept. What I'm thinking of is something like a
Resouce base class with ResourceFromFile and ResourceFromURL. All file type
access would only happen on Resources, and the only place a "new File()"
would ever be allowed would be in the ResourceFromFile. If running inside a
servlet container the only way to get a resource should be using
context.getResource(res) and then doing a getStream() on it.
I'm looking for suggestions on the concept and the interfaces. I'd be happy
to contribute the work. I also don't think it will take much to create
something that can be used in both cocoon 1 and 2.
Paul Lamb