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

[jsr339-experts] Re: Updated Client API and Interceptors/Filters proposal is available - please review

From: Marek Potociar <marek.potociar_at_oracle.com>
Date: Thu, 09 Jun 2011 14:53:07 +0200

On 06/06/2011 02:06 PM, Bill Burke wrote:
>
>
> On 6/6/11 7:45 AM, Dionysios G. Synodinos wrote:
>> - I don't like all the getFeature() methods. Just have a
>> getProperties() method and be done with it. I don't think I've ever
>> seen such an API in Java EE before or what you're trying to
>> accomplish with it.
>>
>>
>> I appreciate simplicity, but semantically "properties" continue to be
>> quite different to me than "features".
>>
>
> I just don't see a use case for being able to see if a feature is enabled or enabling or disabling a feature at the
> Invocation level. Can somebody provide one?
>

How about:

postPersonalData.disableFeature(Features.REQUEST_LOGGING);

?

Marek