users@jsr311.java.net

Re: _at_MatrixParam

From: Sergey Beryozkin <sergey.beryozkin_at_iona.com>
Date: Tue, 18 Mar 2008 17:32:17 -0000

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?q=1&q=2 ? Will we get '2' for a parameter named 'q' ?


Cheers, Sergey


.dev.java.net

----------------------------
IONA Technologies PLC (registered in Ireland)
Registered Number: 171387
Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland