users@jersey.java.net

Re: [Jersey] _at_OPTIONS

From: Marc Hadley <Marc.Hadley_at_Sun.COM>
Date: Mon, 09 Mar 2009 09:23:30 -0400

On Mar 8, 2009, at 8:48 AM, Erdinc Yilmazel wrote:

> 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")
>
Right, you can add your own. We are just adding @OPTIONS in 1.1 for
completeness sake.

Marc

> 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
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>