protected < T > Optional < T > executePatchRequest ( URI uri , Object obj , Map < String , Object > headers , List < String > queryParams , GenericType < T > returnType ) { WebTarget target = this . client . target ( uri ) ; target = applyQueryParams ( target , queryParams ) ; Invocation . Builder invocation = target . request ( MediaType . APPLICATION_JSON ) ; applyHeaders ( invocation , headers ) ; if ( obj == null ) obj = Entity . text ( "" ) ; Response response = invocation . method ( "PATCH" , Entity . entity ( obj , MediaType . APPLICATION_JSON ) ) ; handleResponseError ( "PATCH" , uri , response ) ; logResponse ( uri , response ) ; return extractEntityFromResponse ( response , returnType ) ; }
Execute a PATCH request with a return object .