cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Grzegorz Kossakowski <>
Subject Re: [jira] Created: (COCOON-2154) Servlet:/ protocol: Support absolute URIs
Date Thu, 27 Dec 2007 20:18:16 GMT
Reinhard Poetz pisze:
> I've rewritten the ServletConnection and it always expects now globally
> absolute URIs. If a service-relative URI is being resolved, the
> ServletSource can translate it into an absolute one.

It looks like you implying that ServletConnection should never be used directly only ServletSource,
instead. Am I guessing right?

> This should fix the cache key generation problem too.

Yep, I hope so.

>> Plus sign doesn't look naturally for me. Are there any other options?
> Citing RFC 2396:
>    Scheme names consist of a sequence of characters beginning with a
>    lower case letter and followed by any combination of lower case
>    letters, digits, plus ("+"), period ("."), or hyphen ("-").  For
>    resiliency, programs interpreting URI should treat upper case letters
>    as equivalent to lower case in scheme names (e.g., allow "HTTP" as
>    well as "http").
>       scheme        = alpha *( alpha | digit | "+" | "-" | "." )
> But since I strongly discourage from using absolute URIs directly, I don't
> consider it being a big issue.

Aha, ok. I forgot that absolute URIs shouldn't be used directly in general. Then I'm fine
with plus

It brings interesting question: if user is not supposed to use absolute URIs directly will
usage be limited only to making ServletSource conforming the API of Source interface thus
proper cache keys? I was thinking about dynamic connections between servlets but I would like
hear your opinion.

Grzegorz Kossakowski

View raw message