users@jersey.java.net

[Jersey] Re: HTTP PATCH support

From: Jakub Podlesak <jakub.podlesak_at_oracle.com>
Date: Wed, 01 Jun 2011 19:01:34 +0200

Hi Gary,

it depends on what you mean by PATCH support.
It should be quite easy to add the @PATCH annotation itself
using the javax.ws.rs.HttpMethod meta annotation:

@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@HttpMethod("PATCH")
public @interface PATCH {
}

And your @PATCH annotated resource method should
get invoked automatically on the PATCH requests.

You probably mean some feature-richer support, right?
Could you please elaborate?

~Jakub

On 05/06/2011 05:09 PM, Gary Moore wrote:
> Anything in the hopper for PATCH method support?
> http://tools.ietf.org/html/rfc5789
>
> I searched the Jira for PATCH and got back a million issues about code
> patches, so forgive if I missed it.
>
> If not, I might dive in and take a swipe at implementing it myself.
> Our project has a perfect use case for it.
>
> Gary
>