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