You can match on a regex pattern. So like:
@Path("/browse/{path:.+}")
And then anything after 'browse/' would get stuck in a @PathParam
called 'path' in this case. That what you're looking for?
Chris
On Mon, Jul 12, 2010 at 4:16 PM, Graham Leggett <minfrin_at_sharp.fm> wrote:
> 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
> --
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>
>