Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 51216 invoked from network); 4 Aug 2007 13:03:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Aug 2007 13:03:55 -0000 Received: (qmail 549 invoked by uid 500); 4 Aug 2007 13:03:52 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 463 invoked by uid 500); 4 Aug 2007 13:03:52 -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 447 invoked by uid 99); 4 Aug 2007 13:03:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 04 Aug 2007 06:03:52 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [130.237.222.182] (HELO smtp.nada.kth.se) (130.237.222.182) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 04 Aug 2007 13:03:47 +0000 X-Authentication-Info: The sender was authenticated as danielf using PLAIN at smtp.nada.kth.se Received: from [85.225.172.90] (c-5aace155.188-1-64736c14.cust.bredbandsbolaget.se [85.225.172.90]) (authenticated bits=0) by smtp.nada.kth.se (8.12.11.20060308/8.12.11) with ESMTP id l74D3OEA028549 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 4 Aug 2007 15:03:25 +0200 (MEST) Message-ID: <46B47919.2040904@nada.kth.se> Date: Sat, 04 Aug 2007 15:03:21 +0200 From: Daniel Fagerstrom User-Agent: Thunderbird 1.5.0.12 (Windows/20070509) MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: [vote] Let our environment abtractions extend the http servlet ones Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org I would like o.a.c.environment.[Request|Response|Session] to extend javax.servlet.http.Http[ServletRequest|ServletResponse|Session] respectively. The gain of doing so is that it will be easier to reuse Cocoon components outside Cocoon and that it will be simpler to use Cocoon together with other frameworks (see http://thread.gmane.org/gmane.text.xml.cocoon.devel/59035/focus=59143 for a discussion about this). A drawback is that some slight back incompatibility is introduced. The most important one Request.getSession will have HttpSession as return type instead of Session, and that user code needs to switch from Session to HttpSession or downcast the return value to Session. Uses of o.a.c.environment.Cookie needs to be switched to javax.servlet.http.Cookie, (which has exactly the same API), see http://article.gmane.org/gmane.text.xml.cocoon.devel/74322 and http://thread.gmane.org/gmane.text.xml.cocoon.devel/74276. I don't want this to collide with releasing 2.2, so I'll wait with introducing the changes if there is any risk for that. Please cast your vote! /Daniel