users@jersey.java.net

[Jersey] Re: HTTP PATCH support

From: Gary Moore <gary.moore_at_gmail.com>
Date: Wed, 1 Jun 2011 15:50:45 -0400

Jakub,

Nope, that's pretty much exactly what I was talking about. Didn't
know one could do that. I thought that something would need to change
a little deeper in Jersey itself.

Thanks!
Gary

On Wed, Jun 1, 2011 at 1:01 PM, Jakub Podlesak
<jakub.podlesak_at_oracle.com> wrote:
> 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
>>
>
>



-- 
Gary Moore
http://www.gmoore.net