users@jsr311.java.net

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

From: cowwoc <cowwoc_at_bbs.darktech.org>
Date: Wed, 28 Jan 2009 22:13:42 -0500

        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.

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