users@jersey.java.net

Jersey and recursive paths

From: Graham Leggett <minfrin_at_sharp.fm>
Date: Tue, 13 Jul 2010 01:16:20 +0200

Hi all,

While experimenting with Jersey I have found how to specify URLs that
consist of static path elements, such as "/browse/{itemID}", but I'm
struggling to find how to handle recursive arguments, such as "/browse/
{itemPath}", where itemPath is "/path/to/my/item".

I have data expressed within a hierarchy that I need to maintain
within the URL space, and I'm struggling to express it. When I attempt
to use the path "/browse/path/to/my/item" I get a 404 from Jersey, and
my code doesn't get called at all.

Is there a bit of documentation that I am missing?

All I have found so far is "Matching Multiple Path Segments", which is
documented "TODO": http://wikis.sun.com/display/Jersey/Advanced+JAX-RS+1.0+Features

Regards,
Graham
--