dev@jsr311.java.net

Re: JSR311: Re: General comments/questions/suggestions

From: Bill Burke <bburke_at_redhat.com>
Date: Mon, 28 Jan 2008 08:21:21 -0500

Dhanji R. Prasanna wrote:
>
>
> On Jan 21, 2008 10:28 PM, Paul Sandoz <Paul.Sandoz_at_sun.com
> <mailto:Paul.Sandoz_at_sun.com>> wrote:
>
>
> >> Also '**' could be used with a PathParam and PathSegment:
> >>
> >> @Path("customers/{id}**/address")
>
>
> Paul, am I missing something or is there a missing '/' between '{id}'
> and '**/address'?
>
> Btw, I love the ant-path idea. ++!
>
> Dhanji.

I was thinking {id} would be mapped to an array of PathSegments. For
example, {id} could be a composite primary key of which you don't know
how many elements are in it.

The UriTemplate spec that Paul posted is probably the way to go though:

http://tools.ietf.org/html/draft-gregorio-uritemplate-02




-- 
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com