users@jsr311.java.net

Re: _at_MatrixParam

From: Stephan Koops <Stephan.Koops_at_web.de>
Date: Tue, 18 Mar 2008 19:46:26 +0100

Hello Sergey,
> Hi,
>
> > If I request a collection, than I get all?
> >
> > example:
> > http://host.org/path1;mp1=a;mp2=b/path2;mp1=c;mp1=d
> > and the resource method for path2 requests @MatrixParam("mp1")
> > than the method get the 4 values [1,2,3,4]
> >
>
> You'd get just 'd' according to the rules...
> But I'm wondering, would it make sense to actually get all the values ?
>
> What about HeaderParam and QueryParam ? What if we have something like
> http://host.org/path1 <http://host.org/path1?q=1&q=2>?q=1&q=2 ? Will
> we get '2' for a parameter named 'q' ?
>
> Cheers, Sergey
It's just in discussion to allow List<String> for exactly that. My
request was for the same point.

Stephan