Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 11400 invoked from network); 27 Dec 2007 21:15:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Dec 2007 21:15:48 -0000 Received: (qmail 76081 invoked by uid 500); 27 Dec 2007 21:15:36 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 75996 invoked by uid 500); 27 Dec 2007 21:15:36 -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 75985 invoked by uid 99); 27 Dec 2007 21:15:36 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Dec 2007 13:15:36 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [88.198.46.98] (HELO indoqa.com) (88.198.46.98) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Dec 2007 21:15:24 +0000 Received: from [192.168.1.32] (chello062178239020.5.15.vie.surfer.at [62.178.239.20]) by indoqa.com (Postfix) with ESMTP id 6477A25468A for ; Thu, 27 Dec 2007 22:32:26 +0100 (CET) Message-ID: <477415E3.1060906@apache.org> Date: Thu, 27 Dec 2007 22:15:15 +0100 From: Reinhard Poetz User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: [jira] Created: (COCOON-2154) Servlet:/ protocol: Support absolute URIs References: <11551087.1198667503258.JavaMail.jira@brutus> <4772380E.7020107@tuffmail.com> <4772991D.2040102@apache.org> <4772C133.9090906@tuffmail.com> <477404E5.7030809@apache.org> <47740888.2000103@tuffmail.com> <47740EAA.8010101@apache.org> <477412BA.3010401@tuffmail.com> In-Reply-To: <477412BA.3010401@tuffmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Grzegorz Kossakowski wrote: > Reinhard Poetz pisze: >> ServletSource is only available if you use the ServletService Framework >> together with Cocoon. So I think that ServletConnection should become >> public API too. >> >> We could offer two types of ServletConnections: >> >> * RelativeServletConnection that works relative to the current servlet >> context * AbsoluteServletConnection that expects the servlet service name >> (= the name of the Spring bean) > > I was wondering why ServletConnection can't be clever enough to figure it out > if it's passed a relative URI or absolute one? Why we need separate classes? > > It's not a big deal for me, just curious. the reason was that I didn't like the code when it did both. But let's discuss this when the code is committed. >> Actually I've already implemented it this way ... >> >> WDYT? > > The biggest mystery for me is why I don't see commit messages mentioning this > great stuff being checked in into our repository. > > Keeping this code in a secret is just not fair! ;-) I have to test it more extensivly, but I plan to commit it soon. >> For me fixing the cache key generation problem is only a positive side >> effect of my current work. I need absolute servlet URIs for a special >> generator (or maybe a source, don't know yet) whose output depends on the >> available servlet services which makes it impossible to define them as >> connections beforehand. >> >> Probably it's very similar to what you call "dynamic connections". > > Yep, I guess so. I was thinking about dynamic servlet discovery based on some > conditions. For example, I would like to see a generator that lets me to list > all servlet giving 200 response when they asked for resource > "/org.grek.app.skin.provider". This way I could easily list all skins > available for my new, shiny application. Is it something similar to your > goals? yes -- Reinhard Pötz Managing Director, {Indoqa} GmbH http://www.indoqa.com/en/people/reinhard.poetz/ Member of the Apache Software Foundation Apache Cocoon Committer, PMC member, PMC Chair reinhard@apache.org _________________________________________________________________________