users@jersey.java.net

Re: [Jersey] Re: Re: Re[Jersey] ading entity body

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Fri, 24 Oct 2008 08:39:43 +0200

On Oct 23, 2008, at 9:26 PM, Robertson, Jeff wrote:

> Should I be able to declare an annotation like this:
>
> @Target(value=METHOD)
> @Retention(value=RUNTIME)
> @HttpMethod("PATCH")
> public @interface PATCH {
> }
>
> And start putting it on resource methods, just like @GET and @PUT?

Yes.


> Or
> does something in Jersey's internals need to change to support the
> addition of new HTTP methods?
>

No. Jersey does not do anything special.

Paul.