users@jersey.java.net

Re: [Jersey] _at_OPTIONS

From: Erdinc Yilmazel <erdinc_at_yilmazel.com>
Date: Sun, 8 Mar 2009 12:48:04 +0000

Take a look at the implementation of @GET. I think you can define your
own annotation for Options. You just need to annotate your own
annotation with @HttpMethod("OPTIONS")

Erdinc

On Sun, Mar 8, 2009 at 12:24 PM, Jaka Jančar <jaka_at_kubje.org> wrote:
> Hi!
>
> The 1.0 spec in 3.3.5 claims:
>> [...] Call a method annotated with a request method designator for OPTIONS
>> [...]
>
> However such annotation doesn't seem to exist.
>
> I see the following in the Draft Changelog for JSR 000311 - JAX-RS 1.1 [1]:
>> C009 Enhancement Add an @OPTIONS annotation to complete the set of
>> pre-defined method designators.
>
> Am I right in assuming that @OPTIONS was intended in 1.0, but somehow
> forgotten?
>
> If so, when is JAX-RS 1.1 expected and if it's not anytime soon, could there
> be a Jersey-specific OPTIONS annotation added in the meanwhile?
>
> Regards,
>  Jaka
>
> [1]
> http://jcp.org/aboutJava/communityprocess/maintenance/jsr311/311ChangeLog.html
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>
>