I think it's a matter of personal preference. I'd like to keep both versions. I'm thus adding the accept(...) methods into Invocation.Builder while keeping the old request methods (with updated javadoc).
Marek
On Feb 7, 2013, at 12:08 AM, Jan Algermissen <jan.algermissen_at_nordsc.com> wrote:
>
> On 06.02.2013, at 23:48, Bill Burke <bburke_at_redhat.com> wrote:
>
>> IMO
>>
>> I think this:
>>
>> webTarget.request().accept("application/json").get();
>>
>> looks more readable than this:
>>
>> webTarget.request("application/json").get();
>
>
> +1
>
>> request("application/json")
>
> continues to feel like an obstacle in the flow of the API for me.
>
> Jan
>
>
>>
>>
>> It's more typing, but more readable.
>>
>> --
>> Bill Burke
>> JBoss, a division of Red Hat
>> http://bill.burkecentral.com
>