users@jersey.java.net

Re: interpreting matrix parameters from the URI.

From: Paul Sandoz <Paul.Sandoz_at_oracle.com>
Date: Wed, 1 Dec 2010 16:00:12 +0100

On Nov 30, 2010, at 11:22 PM, Rahul Babbar wrote:
> Hello Jersey Universe !!!,
>
> Lets say i have a uri of the form /foo;a=b;c=d
> then normally, we can get the value of a, c using the multi valued
> map by doing pathSegment.getMatrixparameters().
>
> However in my case, the uri can be /foo;a>b;c!=d etc
> So, i want to get the List of Strings like "a>b", "c!=d" so that i
> could interpret it my own way.
>
> Is there a way to accomplish this?
>

All i can suggest is you get the path from the UriInfo and parse it
yourself.

Paul.