users@jsr311.java.net

Re: UriBuilder, query/matrix params vs values multiplicity for single name

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Thu, 29 Jan 2009 12:55:31 +0100

On Jan 29, 2009, at 4:13 AM, cowwoc wrote:

>
> That's the first I heard of it. Are you asking *why* only one
> attributes can only occur once? If so, I'm wondering too. I've
> already designed an application that requires multiple matrix
> parameter instances.
>

The section on "Parsing matrix URLs" states:

   "Note: relative Matrix URLs are not generally implemented so this
is just a theoretical discussion."

and the discussion about attributes is related to such relative matrix
URLs.

Paul.

> Gili
>
> Andrzej Michalec wrote:
>> Hi,
>> In UriBuilder manipulation of query params allows to bind multiple
>> values with single name -- e.g. this is observed by varargs in
>> "replaceQueryParams(String, Object...)". It's generally fine, since
>> we
>> can have query part of URI like this "foo=bar&foo=baz". So far so
>> good.
>> I see however same rule is applied to matrix params. Javadoc points
>> to
>> document (http://www.w3.org/DesignIssues/MatrixURIs.html) that very
>> clearly states that "attributes can only occur once" e.g taking final
>> segment of URI we can have "/finalsegment;foo=bar;baz=blah" but this
>> one "/finalsegment;foo=bar;foo=blah" should be wrong.
>> Where is the catch, though?
>> cheers,
>> andy.
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_jsr311.dev.java.net
>> For additional commands, e-mail: users-help_at_jsr311.dev.java.net
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jsr311.dev.java.net
> For additional commands, e-mail: users-help_at_jsr311.dev.java.net
>