dev@jsr311.java.net

Re: Removing _at_UnmatchedPath

From: Dhanji R. Prasanna <dhanji_at_gmail.com>
Date: Mon, 9 Jul 2007 20:17:50 +1000

On 7/3/07, Marc Hadley <Marc.Hadley_at_sun.com> wrote:
>
> The @UnmatchedPath annotation was intended to be used to provide
> access to the unmatched part of a URI path thus:
>
> @UriTemplate("folders")
> public class Path {
>
> @HttpMethod(GET)
> public Response getContent(@UnmatchedPath String path) {
> ...
> }
> }


How about an embedded expression instead?

@URITemplate("folders/{path}+")

Dhanji.