@HttpMethod annotation does not accept HttpMethod.Methods enum

The @HttpMethod annotation seems to declare its value() property as a String instead of Methods.

So you always have to specify the literal method "GET", "POST", "PUT", "DELETE", "OPTIONS", etc instead of just being able to use the HttpMethod.Methods enum Methods.GET, Methods.POST, etc...

This does not make sense... Is there something I am doing wrong?

-David

[385 byte] By [siefert.davida] at [2007-11-26 21:45:39]
# 1
Looks like a bug, I'll look into it. The reason that the value property is of type String rather than Methods is that HTTP methods are extensible and we didn't want to restrict it so you'd be unable to support something like WebDAV which defines new HTTP
MarcHadleya at 2007-7-10 3:34:37 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...