Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 20942 invoked from network); 26 Oct 2006 20:02:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Oct 2006 20:02:17 -0000 Received: (qmail 46592 invoked by uid 500); 26 Oct 2006 20:02:27 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 46527 invoked by uid 500); 26 Oct 2006 20:02:26 -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 List-Id: Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 46516 invoked by uid 99); 26 Oct 2006 20:02:26 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Oct 2006 13:02:26 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [68.230.240.37] (HELO eastrmmtao02.cox.net) (68.230.240.37) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Oct 2006 13:02:11 -0700 Received: from eastrmimpo01.cox.net ([68.1.16.119]) by eastrmmtao02.cox.net (InterMail vM.6.01.06.03 201-2131-130-104-20060516) with ESMTP id <20061026200152.PDCE5273.eastrmmtao02.cox.net@eastrmimpo01.cox.net> for ; Thu, 26 Oct 2006 16:01:52 -0400 Received: from [192.168.0.102] ([70.179.64.83]) by eastrmimpo01.cox.net with bizsmtp id f81P1V0011nmRs60000000 Thu, 26 Oct 2006 16:01:23 -0400 Message-ID: <4541142D.2070103@reverycodes.com> Date: Thu, 26 Oct 2006 16:01:49 -0400 From: Vadim Gritsenko User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: Postable block protocol References: <32438240.1161770236540.JavaMail.root@brutus> <453F4CFC.4000307@nada.kth.se> <453FB155.9080703@nada.kth.se> In-Reply-To: <453FB155.9080703@nada.kth.se> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Daniel Fagerstrom wrote: > What I would propose is to create some new pipeline components that > calls postable sources, and make the block protocol postable. Then we > have four cases for the different combinations of XML or non XML input > and output respectably: > > non XML -> non XML > > > non XML -> XML > > > > > XML -> XML > > > XML -> non XML > It took me at least 5 min to understand what you mean... So I want to confirm that I got it right. :) Do you mean that proposed "service" Reader / Generator / Transformer will resolve the Source object passed to it and will try to "forward" post body (if any) of the current Request into that Source? Do I get it right that you are proposing to introduce new PostableSource interface? And WRT to ModifiableSource, I do not think it is a good match here. Semantically, good old Source.getInputStream() corresponds to GET, ModifiableSource.getOutputStream() corresponds to PUT, so it looks like 'postable' source should not be using ModifiableSource but introduce its own interface. Vadim