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
sign.
It brings interesting question: if user is not supposed to use absolute URIs
directly will their
usage be limited only to making ServletSource conforming the API of Source
interface thus generating
proper cache keys? I was thinking about dynamic connections between servlets
but I would like to
hear your opinion.
--
Grzegorz Kossakowski