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

[jsr339-experts] Re: Update in the client configuration API flow

From: Bill Burke <bburke_at_redhat.com>
Date: Mon, 26 Sep 2011 10:19:56 -0400

On 9/26/11 6:30 AM, Marek Potociar wrote:
>
>
> On 09/25/2011 07:00 PM, Sergey Beryozkin wrote:
>> Hi Marek
>>
>> here are some comments:
>>
>> - a form(...) entity qualifier in the example showing post(form(new Form(...)))
>> seems redundant given that Form is a dedicated class capturing a form submission
>
> Form is a concept used both on the server as well as the client side. As such it cannot extend client-side Entity. One
> solution would be to create a special overload for post() to accept Form directly. But I'm not sure it's worth the
> effort. Perhaps renaming Entity.form(Form) to Entity.entity(Form) (or Entity.encoded(Form) etc.) would do the trick?
>

I've said this before, but, IMO, forms are a widely used format and
should have 1st class support. I find it weird that JAX-RS 1.1 has a
simple @FormParameter annotation, yet the client api has to jump through
hoops to submit form parameters.

Bill

-- 
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com