users@jersey.java.net

Re: [Jersey] Decoding a URL

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Fri, 13 Feb 2009 13:40:57 +0100

On Feb 13, 2009, at 12:45 PM, Daniel Manzke wrote:

> Hi,
>
> I really love the UriBuilder. This class is really good for
> translating a file path to a uri, because it encode all the not
> allowed characters. Is there a way to use this (or any other class)
> vice versa? This means I need to translate the encode parameters
> back. Maybe I'm only blind and didn't saw the method. :)
>

There is nothing in JAX-RS.

For Jersey see UriTemplate:

https://jersey.dev.java.net/source/browse/*checkout*/jersey/tags/jersey-1.0.2/api/jersey/com/sun/jersey/api/uri/UriTemplate.html

Paul.