Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 74376 invoked from network); 31 Aug 2004 11:11:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 31 Aug 2004 11:11:44 -0000 Received: (qmail 50021 invoked by uid 500); 31 Aug 2004 11:11:39 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 49985 invoked by uid 500); 31 Aug 2004 11:11:39 -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 49970 invoked by uid 99); 31 Aug 2004 11:11:38 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from [213.133.34.195] (HELO panacea.is.nl) (213.133.34.195) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 31 Aug 2004 04:11:38 -0700 Received: from hai01.hippo.local ([213.133.51.241]) by panacea.is.nl with Microsoft SMTPSVC(5.0.2195.4905); Tue, 31 Aug 2004 13:11:52 +0200 Received: from [10.10.100.212] ([10.10.100.212]) by hai01.hippo.local with Microsoft SMTPSVC(5.0.2195.6713); Tue, 31 Aug 2004 13:11:35 +0200 Message-ID: <41345CED.4010807@hippo.nl> Date: Tue, 31 Aug 2004 13:11:41 +0200 From: Unico Hommes User-Agent: Mozilla Thunderbird 0.7.2 (Windows/20040707) X-Accept-Language: en-us, en MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: Actual implementation of passthrough References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 31 Aug 2004 11:11:35.0561 (UTC) FILETIME=[4759E790:01C48F4B] X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Nicola Ken Barozzi wrote: > > If the @passthrough attribute is to be put in the section > of the mounted sitemap, it seems easy: make the PipelinesNodeBuilder > set a passthrough variable in the PipelinesNode, and have the > PipelinesNode tell or not the last PipelineNode if it has to stop: > > public void setChildren(ProcessingNode[] nodes) { > // Mark the last pipeline so that it can throw a > // ResourceNotFoundException > //-> put an if() here > ((PipelineNode)nodes[nodes.length - 1]).setLast(true); > // > super.setChildren(nodes); > } > > The point is that it makes sense for the mount node to set it, but I'm > not sure which is the preferred way in the TreeProcessor to pass that > info from the MountNodeBuilder to the PipelinesNode. > > Suggestions? > What about letting MountNode catch the "No pipeline matched request" exception that is thrown during processor.buildPipeline() and processor.process() and decide whether or not to rethrow it there. Would that work? -- Unico