Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 18220 invoked from network); 27 Jan 2004 15:54:28 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 27 Jan 2004 15:54:28 -0000 Received: (qmail 67986 invoked by uid 500); 27 Jan 2004 13:20:10 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 67751 invoked by uid 500); 27 Jan 2004 13:20:08 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: dev@cocoon.apache.org Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 67731 invoked from network); 27 Jan 2004 13:20:08 -0000 Received: from unknown (HELO smtp.nada.kth.se) (130.237.222.202) by daedalus.apache.org with SMTP; 27 Jan 2004 13:20:08 -0000 Received: from nada.kth.se (fw96.lentus.se [192.58.197.96] (may be forged)) (authenticated bits=0) by smtp.nada.kth.se (8.12.10/8.12.1) with ESMTP id i0RDFuRP001168 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 27 Jan 2004 14:15:57 +0100 (MET) Message-ID: <4016637F.5070200@nada.kth.se> Date: Tue, 27 Jan 2004 14:11:27 +0100 From: Daniel Fagerstrom User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6b) Gecko/20031208 X-Accept-Language: en-us, en MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: [ANN] Module Source and XModule Source References: <40163C38.8010303@upaya.co.uk> In-Reply-To: <40163C38.8010303@upaya.co.uk> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Upayavira wrote: > Leszek Gawron wrote: > >> The whole module idea is really great but (please correct me if I'm >> wrong): >> >>> >>> >> The o.a.c.components.modules.input.RequestModule provides this: >> >> return ObjectModelHelper.getRequest(objectModel); >> >> getRequest returns o.a.c.environment.Request which is an interface >> that is not >> bound to http. You cannot reach the request's body from here. >> > You would appear to be right. See my answer to Leszek. I must say that I find it a little bit amusing that you read the source code instead of trusting what I claimed in the anouncement and trying the implementation ;) I guess it is a behaviour that you develop when you have lived at the "bleading edge" for a long time, I most of the time do the same myself. > My answer is "lets add getInputStream to o.a.c.environment.request". > After all, you've got stuff about cookies, sessions, hosts, etc, etc, > which, whilst there's a level of abstraction there, it is still pretty > HTTP focussed (which is fine). Adding this (and probably other similar > ones) would help us in the direction of HTTP protocol independence. For > example, the CLI doesn't work when some blocks are compiled in, because > of their explicit HTTP references. If we redirected these via the > Request interface, other environments could handle them as they wish, > and we'd have greater environmental abstraction, which is a good thing. I completely agree with that getInputStream should be added to the request interface. I gave some arguments for doing it in http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=104213670731308&w=2, there where also a discussion in http://marc.theaimsgroup.com/?t=104029502400001&r=1&w=2 > Oh, and the above module:request:inputStream would work too! It allready does, or a least did some weeks ago ;) /Daniel