admin@glassfish.java.net

Re: Pathnames for V3

From: Sreenivas Munnangi <Sreenivas.Munnangi_at_Sun.COM>
Date: Tue, 24 Mar 2009 22:59:06 -0700

Lloyd Chambers wrote:

> Pathnames proposal for V3, intended for use in URLs and admin CLI is
> now a separate doc:
>
> https://glassfish.dev.java.net/nonav/v3/admin/planning/V3Changes/V3_Pathnames.html
>

JSR311 which deals with REST spec. has similar mechanism for providing
templatized values as below.

Specifically section 3.4 on URI Templates, few examples below.
https://jsr311.dev.java.net/nonav/releases/1.0/spec/index.html

1 @Path("widgets/{id}")
2 public class Widget {
3 ...
4 }

In the above example the Widget resource class is identified by the
relative URI path widgets/xxx where xxx is the value of the id parameter.

some more from REST samples:

/items/{itemid}
/items/{itemid}/tracks/{num}
/containers/{container}/{item}

>
>
> Lloyd Chambers
> lloyd.chambers_at_sun.com
> GlassFish Team
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: admin-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: admin-help_at_glassfish.dev.java.net
>