Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 99051 invoked from network); 25 Jan 2006 22:05:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 Jan 2006 22:05:36 -0000 Received: (qmail 44742 invoked by uid 500); 25 Jan 2006 22:05:32 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 44717 invoked by uid 500); 25 Jan 2006 22:05:32 -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 44706 invoked by uid 99); 25 Jan 2006 22:05:32 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Jan 2006 14:05:32 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [130.237.222.115] (HELO smtp.nada.kth.se) (130.237.222.115) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Jan 2006 14:05:31 -0800 X-Authentication-Info: The sender was authenticated as danielf using PLAIN at smtp.nada.kth.se Received: from [85.226.148.17] (c-1194e255.188-1-64736c14.cust.bredbandsbolaget.se [85.226.148.17]) (authenticated bits=0) by smtp.nada.kth.se (8.12.11/8.12.11) with ESMTP id k0PM59Jn014609 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 25 Jan 2006 23:05:09 +0100 (MET) Message-ID: <43D7F616.5060909@nada.kth.se> Date: Wed, 25 Jan 2006 23:05:10 +0100 From: Daniel Fagerstrom User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: [RT] The environment abstraction, part II Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I suggested that we should ditch our environment abstraction and replace it with the javax.servlet.http set of interfaces, as one step in simplifying Cocoon in http://marc.theaimsgroup.com/?t=113432388200001&r=1&w=2. The result of the discussion was that there are some "extras" in our interfaces compared to the http servlet interfaces that are needed in the sitemap, so we would get back incompatibility and maybe other problems and it might be much work to accomplish. Now I would instead suggest that our environment interfaces just extends the corresponding Servlet 2.3 (or 2.4) interfaces, Request extends HttpServletRequest etc. This should not create any problems with the current code base at all AFAICS, and would make it easier to make Cocoon cooperate with other systems. Calling Cocoon from a Servlet environment is currently not a problem as we have wrappers, but it gets inconvenient to call servlets from within Cocoon. And the block architecture is Servlet based for making integration and development of new controllers easier and the result more reusable. As the block protocol requires the sitemap to call back the block architecture it would be an advantage if we used the servlet set of interfaces. Also for being able to use the CLI with blocks it need to be able to call the block architecture, and here it would also be an advantage if our environment interfaces extended the servlet ones. I'd like to implement the above change ASAP, WDYT? /Daniel