dev@jsr311.java.net

Re: JSR311: matrix params in _at_Path

From: Bill Burke <bburke_at_redhat.com>
Date: Wed, 02 Jul 2008 09:54:57 -0400

Stephan Koops wrote:
> Hi Bill,
>
> in March we explicit forbid this (see also
> https://jsr311.dev.java.net/servlets/BrowseList?listName=users&from=1075755&to=1075755&count=29&by=thread&paged=false).
>



> I think it is more clear with @MatrixParam.
>

@MatrixParam is actually *less* clear because any URI segment can have a
matrix param, and there can be duplicates. For example:

/stuff;id=1/bar;id=2

> I think, if someone needs different resource methods for different
> matrix parameter values (e.g @Path("abc;gg=5") ), he've made a mistake
> in his URI modeling. IMO the API should not support this.
>

I disagree. Unlike Query parameters, Matrix parameters are part of the
identity of the resource.

Bill

-- 
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com