users@jsr311.java.net

Re: more comments to JSR311

From: Marc Hadley <Marc.Hadley_at_Sun.COM>
Date: Tue, 25 Mar 2008 15:50:01 -0400

On Mar 25, 2008, at 1:30 PM, Stephan Koops wrote:
> Hi Marc,
>>> @Context on PathSegment?
>>> What about @Context also allowed on type PathSegment? I know that
>>> it is also possible by using UriInfo.getPathSegments() and then
>>> fetch the last, but this raises the useability. It should be the
>>> last parsed path segment:
>>> • On a resource method the PathSegment that was parsed while
>>> looking for the resource class (if it is a root resource class
>>> that from @Path of the class)
>>> • On a sub resource method or locator it is the one from @Path
>>> of the java method.
>> I think what we have with being able to use @PathParam with
>> PathSegment is already adequate.
> Not full. Do you read my email as answer to Bill?
>
Yes, I'm not strongly opposed to this but given that you can already
get the path segment via UriInfo it doesn't seem that useful...

Marc.

---
Marc Hadley <marc.hadley at sun.com>
CTO Office, Sun Microsystems.