On Dec 8, 2007, at 7:24 AM, Alfred Nathaniel wrote:

On Fri, 2007-12-07 at 23:09 -0500, Vadim Gritsenko wrote:
On Dec 7, 2007, at 10:37 PM, Jörg Heinicke (JIRA) wrote:

Also I don't like the idea of checking for a particular protocol. In
theory somebody could have implemented its own protocol doing
something similar as cocoon://.

You do not even need a theory :) Simply edit cocoon.xconf, and use any
protocol you like.

<component-instance name="sitemap"
class ="org.apache.cocoon.components.source.impl.SitemapSourceFactory"/>

Unfortunately, that is only a theoretical possibility.  There are
already 11 places where startsWith("cocoon:") is hardwired in the code.

True... Hm, I'm not even sure how to avoid hardcoding it... May be we should just legalize this, define a constant somewhere - COCOON_PROTOCOL = "cocoon:";

Vadim

Reply via email to