users@jersey.java.net

Re: [Jersey] Absolute URI

From: Craig McClanahan <Craig.McClanahan_at_Sun.COM>
Date: Wed, 06 Aug 2008 15:19:41 -0700

Richard Levenberg wrote:
> Ive been looking and cant seem to find any way to handle an absolute URI.
>
> say I have something like
> http://example.com/param1/param2/param3/resourceId.ext
>
> I know with PathParam and Path annotations how to get param1, param2, and
> param3 but how do I get resourceId and ext?
>
> r
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>
>
Can't you just use path parameter patterns like all the others?

    @Path("/{param1}/{param2}/{param3}/{resource}.{extension}")

Craig