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 16:12:02 +0200

Hi Guilherme,

thanks for chiming in. Let me consider this. Added as a new sub-task: http://java.net/jira/browse/JAX_RS_SPEC-111

Marek

On 06/07/2011 12:06 AM, Guilherme Silveira wrote:
> I don't use it in Java EE but in other apis we use features to
> customize any kind of api behavior. In this case, for me, Interceptors
> are one type of features so:
>
> new DefaultConfiguration().with(MyResponseFIlter.class).with(new
> MyResponseFilter()) would be a way to configure it. It doesnt mean
> that ResponseFilter inherits from Feature, but I like avoiding Strings
> as much as possible for configuration.