users@jersey.java.net

Re: [Jersey] WadlGenerator does not generate resource methods for subresources?

From: Marc Hadley <Marc.Hadley_at_Sun.COM>
Date: Tue, 10 Jun 2008 10:07:45 -0400

On Jun 10, 2008, at 9:57 AM, Paul Sandoz wrote:
>> On Tue, 2008-06-10 at 14:05 +0200, Paul Sandoz wrote:
>>> Hi Martin,
>>>
>>> The main issue we do not know at compile/deploy time what concrete
>>> resources are returned by sub-resource locater methods.
>> You're speaking of the cases when resource methods simply return a
>> Response instead of a concrete type?
>
> No a "sub-resource locator" not a "sub-resource method" :-) like the
> sub-resource locator UsersResource.getUser.
>
> This method could in the future also return a sub-type of
> UserResource, say PreferredUserResource with additional URI space,
> say for a preferred paying user.
>
> I suppose if the return type of the sub-resource locator is
> recognized as a resource we could do some processing on it even if
> it is not always the concrete type returned.
>
I was going to suggest the same, that would at least give some
baseline information.

Marc.

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