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

[jsr339-experts] Re: [jax-rs-spec users] Re: Single ContainerRequestFilter in pre-match and post-match mode ?

From: Marek Potociar <marek.potociar_at_oracle.com>
Date: Wed, 6 Mar 2013 18:05:41 +0100

Resolved: http://java.net/jira/browse/JAX_RS_SPEC-379

Marek

On Mar 6, 2013, at 5:58 PM, Marek Potociar <marek.potociar_at_oracle.com> wrote:

>
> On Mar 5, 2013, at 12:48 PM, Sergey Beryozkin <sberyozkin_at_talend.com> wrote:
>
>> Hi
>>
>> Is it valid to have
>>
>> @PreMatch
>> @A
>> public class MyFilter implements ContainerRequestFiler {
>> }
>>
>> where @A would bind MyFilter to some resource (method) in a post-match phase ?
>> Or does @PreMatch means that MyFilter can only ever be executed in a pre-match phase ?
>
> IMO we should only apply filters annotated with @PreMatching in the pre-match phase and ignore any name bound annotations. I will update the @PreMatch javadoc accordingly.
>
> Marek
>
>>
>> Cheers, Sergey
>>
>>
>