users@jsr311.java.net

PathParam and slashes

From: Denis <deniak.nospam_at_gmail.com>
Date: Mon, 25 Aug 2008 14:42:39 +0200

Hi all,

Is it possible to PathParam annotation to get params which include "/"?

For instance, if I wrote something like that:

@Path(/foo)
public class MyClass {
    @Path("/{myparam}")
    public void aMethod(@PathParam("myparam") String myparam) {
    System.out.println(myparam);
    }
}

and I use that url: http://localhost/foo/a/param/with/slashes
I want to the String myparam set to "a/param/with/slashes"

--
Denis