users@jersey.java.net

Re: [Jersey] Passing a String with slashes, hyphens using _at_Path, @PathParameter/@QueryParameter

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Mon, 01 Mar 2010 14:15:28 +0100

On Feb 23, 2010, at 12:09 AM, Marc Hadley wrote:

> By default path template parameters are limited to a single path
> segment so you either need to percent encode the '/' characters in
> the URL or change the @Path value to match multiple path segments
> like this @Path("{inchiname: .+}").
>

Also, i recommend using UriBuilder to build a URI then converting that
to a URL. Furthermore, you could use the Jersey Client API:

   Client c = ...

   URI u = UriBuilder.fromUri(...)...build();
   return c.resource(u).get(String.class);

Paul.