Hi, I got a service where I want to expose a resource that is defined by
an url to a rssfeed, something like:

    @GET
    @Path("/{URL}/")
    public Subscriber getSubscriber(@PathParam("URL") String url) {
       ... do something with the url.
    }

Now, this does not work with normal urls, nor with urlencoded urls. Why
urlencoded values do not work I do not know, but for normal values, it
seems obvious (they contain '/'s). I've also tried base64 encoding the
urls, but that didn't work either because sometimes the base64 encoded
string contains slashes as well.

So, is there a "correct" way to do this or should I just map directly to
database ids or use request parameters whenever I need to deal with urls?

Kind regards,
Tarjei

Reply via email to