users@jersey.java.net

[Jersey] Re: Annotate multiple response codes on methods

From: Marek Potociar <marek.potociar_at_oracle.com>
Date: Fri, 14 Dec 2012 01:35:26 +0100

Hello,
we do not have such documentation facility supported yet. Can you please file an enhancement request?

Thank you,
Marek
On Dec 12, 2012, at 11:23 AM, Jens Kristian Villadsen <jkv_at_c3a.dk> wrote:

> Hi all -
>
> AFAIK, I can't seem to find any annotations defined in the jersey framework that supports setting response status codes on methods. Is it at all possible, or am I required to write a custom annotation and custom wadl builder.
>
> If it is possible, could I then be able to bind certain status codes with certain entries from the grammar section, eg. like in the standard (http://www.w3.org/Submission/wadl/#x3-40001.3)?
>
> --
> Med venlig hilsen / Kind regards
>
> Jens Kristian Villadsen
> cand.polyt
> Systemudvikler / System developer
> IM (Skype): j.kidd.o
> Cetrea A/S, Denmark
>
> phone : +45 38 40 05 81
> address: Brendstrupgårdsvej 21F, DK-8200 Aarhus N.
> e-mail : jkv_at_cetrea.com
> w^3 : http://www.cetrea.com/
>