users@jersey.java.net

Re: [Jersey] Re: Documentation of resource via javadoc or annotations [WAS: Re: [wikis.sun.com] Jersey > WADL]

From: Martin Grotzke <martin.grotzke_at_freiheit.com>
Date: Thu, 05 Mar 2009 16:43:03 +0100

On Thu, 2009-03-05 at 07:58 -0500, Christopher Piggott wrote:
> Hi,
>
> Martin Grotzke wrote:
> >When I started with extended wadl I also thought about this
> >and decided not to mix up runtime/application logic with
> >information that is only relevant for documentation
>
> That crossed my mind, but isn't there a case where it would be useful
> to know at run-time? Suppose for instance a client asks for something
> as an application/something+xml but I can't fullfill the request.
> Instead, I am going to return say an HTTP 500, and an object that's
> actually an application/some_error+xml. Would there be any advantage
> to the runtime knowing that I intend to do this?
Hmm, currently I don't see any.

Cheers,
Martin

>
> --Chris
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net