users@jersey.java.net

Re: Regex in MatrixParams

From: amsmota <amsmota_at_gmail.com>
Date: Mon, 13 Sep 2010 07:44:56 -0700 (PDT)

I did, but it seems the server unencode before doing the path matching.

Cheers.

On 13 Sep 2010 15:39, "Pavel Bucek [via Jersey]" <
ml-node+5526561-884725410-158495_at_n2.nabble.com<ml-node%2B5526561-884725410-158495_at_n2.nabble.com>>
wrote:

  On 9/13/10 4:20 PM, amsmota wrote:

> Hi guys.
>
> I have a situation where a matrix param can be something like A/B/C wich
> screws
>
> @GET
> @Path("/data/{name}")
> List<?> getData(@PathParam("name")String vame,
> @MatrixParam("params")Map<String, Serializable> params);
>
> and I want to get something like
>
> GET /data/values;date=20/11/2010
>
> As it is now, what this is doing is read date=20 and trey to match the URL

> with /data/values/11/2010
which makes sense to me.

Have you tried encode slashes in date param? It should look like

GET /data/values;date=20%2F11%2F2010


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden
email]<http://user/SendEmail.jtp?type=node&node=5526561&i=0>
For additional commands, e-mail: [hidden
email]<http://user/SendEmail.jtp?type=node&node=5526561&i=1>



------------------------------
 View message @
http://jersey.576304.n2.nabble.com/Regex-in-MatrixParams-tp5526463p5526561.html
To unsubscribe from Regex in MatrixParams, click
here<http://jersey.576304.n2.nabble.com/template/TplServlet.jtp?tpl=unsubscribe_by_code&node=5526463&code=YW1zbW90YUBnbWFpbC5jb218NTUyNjQ2M3wtMTUwMDU4NTM4Nw==>.

-- 
View this message in context: http://jersey.576304.n2.nabble.com/Regex-in-MatrixParams-tp5526463p5526579.html
Sent from the Jersey mailing list archive at Nabble.com.