users@jersey.java.net

Re: [Jersey] Dynamic _at_Path

From: Martin Probst <mail_at_martin-probst.com>
Date: Thu, 6 Aug 2009 18:16:57 +0200

> Why don't you utilize
>
> @Path("{path: .+}")

In my case it's a bit more complicated. I basically use Jersey to
provide an HTTP front end to our native XML database, which internally
has a file-system-like structure. So with every call to "Resource
foo(@PathParam("path") String path)", I actually create a new
"Resource" object that represents the corresponding item in the
repository.

I find that easier than collecting the complete list and iterating it
afterwards.

Martin