users@jax-rs-spec.java.net

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

From: Marek Potociar <marek.potociar_at_oracle.com>
Date: Wed, 6 Mar 2013 17:58:26 +0100

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
>
>