users@jersey.java.net

Re: [Jersey] Re: Regex in MatrixParams

From: Paul Sandoz <Paul.Sandoz_at_oracle.com>
Date: Tue, 14 Sep 2010 07:38:33 -0700

On Sep 13, 2010, at 7:44 AM, amsmota wrote:

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

What server are you using? Jersey will never decode anything until it
has extracted the information from the URI because otherwise it
changes the meaning of the information.

Paul.
> Cheers.
>
>
>> On 13 Sep 2010 15:39, "Pavel Bucek [via Jersey]" <[hidden email]>
>> 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]
>> For additional commands, e-mail: [hidden email]
>>
>>
>>
>> View message @ http://jersey.576304.n2.nabble.com/Regex-in-MatrixParams-tp5526463p5526561.html
>> To unsubscribe from Regex in MatrixParams, click here.
>>
>
>
> View this message in context: Re: Regex in MatrixParams
> Sent from the Jersey mailing list archive at Nabble.com.