users@jersey.java.net

Re: [Jersey] character slash in path parameter

From: Moises Lejter <moilejter_at_gmail.com>
Date: Fri, 13 Nov 2009 15:59:47 -0600

I think you can do something like
@Path("/element/{uid : regex}")
which allows you to specify a regular expression to match against the path -
you could try using something like
[A-Za-z/]+
for the regex, to see if it accepts a value with a "/" in it that way...

Moises

On Fri, Nov 13, 2009 at 1:58 PM, Hoan Vu Tran Ho <hoan.v.tranho_at_nasa.gov>wrote:

> Hi,
> I am using Jersey to code our new restful interface and facing now
> following problem: For example we have @Path("/element/{uid}") and if the
> uid = "AAA/BB" then the @Path doesn't work even if the client already uses
> URL encoding ( -> AAA2%FBB). Can you please tell me if that is a bug?
>
> Thanks,
> Hoan-Vu Tran-Ho.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>
>