Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 80703 invoked from network); 11 May 2007 02:56:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 May 2007 02:56:24 -0000 Received: (qmail 15637 invoked by uid 500); 11 May 2007 02:56:27 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 15549 invoked by uid 500); 11 May 2007 02:56: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 15514 invoked by uid 99); 11 May 2007 02:56:26 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 May 2007 19:56: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.46] (HELO eastrmmtao104.cox.net) (68.230.240.46) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 May 2007 19:56:19 -0700 Received: from eastrmimpo02.cox.net ([68.1.16.120]) by eastrmmtao104.cox.net (InterMail vM.7.05.02.00 201-2174-114-20060621) with ESMTP id <20070511025558.WEPP17536.eastrmmtao104.cox.net@eastrmimpo02.cox.net> for ; Thu, 10 May 2007 22:55:58 -0400 Received: from mybook.local ([24.255.120.190]) by eastrmimpo02.cox.net with bizsmtp id xevx1W00446aSr40000000; Thu, 10 May 2007 22:55:57 -0400 Message-ID: <4643DB37.8070009@reverycodes.com> Date: Thu, 10 May 2007 22:55:51 -0400 From: Vadim Gritsenko User-Agent: Thunderbird 2.0.0.0 (Macintosh/20070326) MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: More problems with implementing servlet services References: <4640A55B.8070200@tuffmail.com> <46424753.1020005@nada.kth.se> In-Reply-To: <46424753.1020005@nada.kth.se> Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Daniel Fagerstrom wrote: > Looking at the AbstractProcessingPipeline the getMimeType method of the > serializer is called from the setMimeTypeForSerializer method that in > turn is called in the beginning of the processXMLPipeline method > *before* the generator.generate() method that lead to the actual > execution of the serializer. I might be missing something, but AFAICS > the call of the setMimeTypeForSerializer method call could be moved to > *after* the generator.generate call without changing the result at all. IIRC, no, this call can't be moved: mime type has to be determined before response is generated, because mime type is part of the response header, which must be serialized before response data is sent out. Moving this call means delaying sending response header till complete response body is generated and this breaks one of Cocoon's staples -- ability to produce response data and send it to the client before complete response is generated. Vadim