users@jsr311.java.net

Re: Path annotations for class resources

From: Sergey Beryozkin <sergey.beryozkin_at_iona.com>
Date: Thu, 28 Feb 2008 14:11:46 -0000

> @Path("id")
> public class Foo {
>
> @Path("id")
> public String subresourcemethod(@UriPath("id") String id) {
> return id'
> }
> }
>

After peering into this example for about 10 mins I finally realized how it works :-)

> A GET to "/foo/bar" will return "bar" and not "foo"

Makes sense

Cheers, Sergey


>
> --
> | ? + ? = To question
> ----------------\
> Paul Sandoz
> x38109
> +33-4-76188109
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jsr311.dev.java.net
> For additional commands, e-mail: users-help_at_jsr311.dev.java.net

----------------------------
IONA Technologies PLC (registered in Ireland)
Registered Number: 171387
Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland