You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cxf.apache.org by Francesco Chicchiriccò <il...@apache.org> on 2018/08/13 14:08:32 UTC

What about adding WebClient#patch ?

Hi all,
I was wondering if there is something preventing to add a method like as

     public Response patch(Object body) {
         return invoke(HttpMethod.PATCH, body);
     }

in the WebClient class on master and 3.2.x-fixes branches, since both 
are on JAX-RS 2.1 which has

javax.ws.rs.HttpMethod#PATCH

defined?

Is AsyncHTTPConduit.USE_ASYNC still required on those branches?

Regards.

-- 
Francesco Chicchiriccò

Tirasa - Open Source Excellence
http://www.tirasa.net/

Member at The Apache Software Foundation
Syncope, Cocoon, Olingo, CXF, OpenJPA, PonyMail
http://home.apache.org/~ilgrosso/


Re: What about adding WebClient#patch ?

Posted by Andrey Redko <dr...@gmail.com>.
It is good question actually, the JAXRS 2.1 API (SyncInvoker) does not have
patch() either, I think we could add one to WebClient, won't harm.

Not sure about USE_ASYNC though, we may have to keep it for backward
compatiblity, no?

Best Regards,
    Andriy Redko


On Mon, Aug 13, 2018, 10:08 AM Francesco Chicchiriccò <il...@apache.org>
wrote:

> Hi all,
> I was wondering if there is something preventing to add a method like as
>
>      public Response patch(Object body) {
>          return invoke(HttpMethod.PATCH, body);
>      }
>
> in the WebClient class on master and 3.2.x-fixes branches, since both
> are on JAX-RS 2.1 which has
>
> javax.ws.rs.HttpMethod#PATCH
>
> defined?
>
> Is AsyncHTTPConduit.USE_ASYNC still required on those branches?
>
> Regards.
>
> --
> Francesco Chicchiriccò
>
> Tirasa - Open Source Excellence
> http://www.tirasa.net/
>
> Member at The Apache Software Foundation
> Syncope, Cocoon, Olingo, CXF, OpenJPA, PonyMail
> http://home.apache.org/~ilgrosso/
>
>