Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 68681 invoked from network); 25 Jul 2007 05:53:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Jul 2007 05:53:17 -0000 Received: (qmail 15525 invoked by uid 500); 25 Jul 2007 05:53:17 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 15156 invoked by uid 500); 25 Jul 2007 05:53:16 -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 15145 invoked by uid 99); 25 Jul 2007 05:53:16 -0000 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.9] (HELO [127.0.0.1]) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jul 2007 22:53:16 -0700 Message-ID: <46A6E5BC.2070909@apache.org> Date: Wed, 25 Jul 2007 07:55:08 +0200 From: Carsten Ziegeler User-Agent: Thunderbird 2.0.0.5 (Macintosh/20070716) MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: How to register MockProcessInfoProvider? References: <46A5CBBC.8040604@tuffmail.com> <46A61B06.6010002@apache.org> <46A61EF4.3060300@apache.org> <46A67899.9020008@apache.org> In-Reply-To: <46A67899.9020008@apache.org> Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Grzegorz Kossakowski wrote: > > What about getParameters() sort of methods that enable you to have > expressions like cocoon.request.parameters.param1 ? > > Since ProcessInfoProvider returns implementation of HttpServletRequest > there is no access to these methods. Any idea on this? > Yes, this is an open question - we should avoid these methods if possible :) Now, I can guess that you don't like the answer, but to have general components which might be reusable outside of Cocoon we should stick to available interfaces where possible. Now, the request has a getParametersMap(), perhaps we could "somehow" use this for cocoon.request.parameters? It would be great if we could just use the servlet interfaces whereever possible. This makes a transition later on much easier. Carsten -- Carsten Ziegeler cziegeler@apache.org