jsr339-experts@jax-rs-spec.java.net

[jsr339-experts] proxy Re: Re: [Client API] Refactoring Link and Invocation

From: Bill Burke <bburke_at_redhat.com>
Date: Thu, 07 Jul 2011 14:16:42 -0400

On 7/7/11 1:33 PM, Markus KARG wrote:
> Well,
>
>> I'm fine with
>>
>> client.request(..).pathParam(...).get();
>>
>> I don't want to see
>>
>> client.link(..).get().pathParam(...).invoke();
>>
>> because it is just not cool at all.
>>
>> And I'd like to have
>>
>> client.request(myLink).pathParam(...).get();
>>
>
> If we are now at the point where we talk about cool things we'd like to
> have, let me drop another wish:
>
> @Resource MyResourceClass target; // injected by ACC
> target.later().myJavaMethodName(HeaderParams, entity); // will do async PUT
> on @Path of MyResourceClass
>
> ...but I think that is not a LOW LEVEL API. ;-)
>

A proxy API which uses JAX-RS annotations for client interface proxies
is something that is *VERY* popular with resteasy users:

http://docs.jboss.org/resteasy/docs/2.2.1.GA/userguide/html/RESTEasy_Client_Framework.html
-- 
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com