On Oct 25, 2012, at 3:51 PM, Bill Burke <bburke_at_redhat.com> wrote:
> configuration() doesn't really belong or is needed on Invocation.Builder. Add property() and remove configuration() entirely, or at least move it to Invocation.
Just to better understand your motivation:
So you say there's no use case for having a different configuration (other than properties) on a per-request bases if the requests are targeted at the same resource (say a need to have special filters for a hand-shake request but not for the other ones)?
Also, what is your use case for modifying properties? Would it make sense to implement that use case via features or provider instances?
>
> http://java.net/jira/browse/JAX_RS_SPEC-302
>
Thanks,
Marek
> On 10/25/2012 9:41 AM, Marek Potociar wrote:
>> Hmm... I'm not convinced yet, but I see what you want to achieve. I need to think more about it. Would you care filing an issue?
>>
>> Marek
>>
>> On Oct 25, 2012, at 3:11 PM, Bill Burke <bburke_at_redhat.com> wrote:
>>
>>> That's fine too. I actually think you should remove configuraion() from Invocation.Builder and just have the property() method I proposed.
>>>
>>> On 10/25/2012 5:15 AM, Marek Potociar wrote:
>>>> Just a thought: Maybe we need to distinguish between request and configuration properties in general?
>>>>
>>>> Marek
>>>>
>>>> On Oct 24, 2012, at 4:26 PM, Bill Burke <bburke_at_redhat.com> wrote:
>>>>
>>>>> I have some features that require setting a request property. It is a bit awkward in the current API:
>>>>>
>>>>> WebTarget target = ...;
>>>>> Invocation.Builder request = target.request();
>>>>> request.configuration().setProperty("custom", "value");
>>>>> Response response = request.get();
>>>>>
>>>>> Would be cool, if there were a property() method on Invocation.Builder:
>>>>>
>>>>> Response response = client.target(...).request().property("custom", "value").get();
>>>>>
>>>>> I'll log a JIRA if people agree.
>>>>>
>>>>>
>>>>> --
>>>>> Bill Burke
>>>>> JBoss, a division of Red Hat
>>>>> http://bill.burkecentral.com
>>>>
>>>
>>> --
>>> Bill Burke
>>> JBoss, a division of Red Hat
>>> http://bill.burkecentral.com
>>
>
> --
> Bill Burke
> JBoss, a division of Red Hat
> http://bill.burkecentral.com