Return-Path: Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 67031 invoked by uid 500); 21 Aug 2003 06:37:14 -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 66896 invoked from network); 21 Aug 2003 06:37:12 -0000 Received: from mail.s-und-n.de (212.8.217.2) by daedalus.apache.org with SMTP; 21 Aug 2003 06:37:12 -0000 Received: from notes.sundn.de (ntsrv5.sundn.de [10.10.2.10]) by mail.s-und-n.de (postfix) with ESMTP id D8675B50D9 for ; Thu, 21 Aug 2003 08:07:45 +0200 (CEST) Received: from hw0386 ([10.10.2.46]) by notes.sundn.de (Lotus Domino Release 5.0.8) with SMTP id 2003082108074351:1312 ; Thu, 21 Aug 2003 08:07:43 +0200 From: "Carsten Ziegeler" To: Subject: RE: Using cocoon: source in s Date: Thu, 21 Aug 2003 08:09:52 +0200 Message-ID: MIME-Version: 1.0 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) In-Reply-To: <3F43702B.6040302@anyware-tech.com> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Importance: Normal X-MIMETrack: Itemize by SMTP Server on PBSN1/Systeme und Netzwerke(Release 5.0.8 |June 18, 2001) at 21.08.2003 08:07:43, Serialize by Router on PBSN1/Systeme und Netzwerke(Release 5.0.8 |June 18, 2001) at 21.08.2003 08:07:44, Serialize complete at 21.08.2003 08:07:44 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Sylvain Wallez wrote: > >I think this is something the internal processing should handle, which > >means, if the reader sets such a header it should simply be ignored > >instead of being passed on. > >Now, I guess this is very easy as we could create a response wrapper > >for internal requests (we already have a request wrapper) and filter > >the headers. > > > > This reminds me some random thoughts I had with Gianugo around a beer > last february : we were discussing the ability for internal sources to > set response headers and came to the conclusion that there was no yes/no > rule for all headers, and that the behaviour was dependent on the header > type. Yes, I agree. > > > The solution we came to was to associate HeaderFilter components to each > of the headers for which filtering is necessary. These filters would be > attached to the top-level environment (i.e. the HttpEnvironment), > receiving any setHeader call of all subenvironments handling the request. > > What do you think ? > Having a filter is a good idea, but the top-level environment does not know if the one setting the header is a sub environment or if it is comming from the current request. So I guess, we have to make a response wrapper and use the filter inbetween. Carsten