users@jersey.java.net

Re: Matrix params

From: Aditya Gore <aditya.gore_at_gmail.com>
Date: Mon, 13 Aug 2007 15:53:30 +0530

My bad - I should've quoted the url that I pass to wget. It works as
expected on doing that.

:aditya

On 8/13/07, Aditya Gore <aditya.gore_at_gmail.com> wrote:
> Hi,
>
> I have the following method in my resource class:
> @HttpMethod
> public Addresses getAddresses(@MatrixParam("a") String param) {
> System.out.println("AddressesResource.getAddresses() : " + param);
> return addresses;
> }
>
> If I invoke: wget http://localhost:9998/addresses;a=b, I expect the
> above sysout to print "AddressesResource.getAddresses() : b". But this
> doesn't seem to be happening!
>
> Am I specifying the matrix parameter incorrectly? This is with jersey-ea-0.2.
>
> regards,
> :aditya
>