users@jax-rs-spec.java.net

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

From: Santiago Pericas-Geertsen <Santiago.PericasGeertsen_at_oracle.com>
Date: Tue, 5 Mar 2013 09:39:35 -0500

On Mar 5, 2013, at 6:48 AM, 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 ?

 I don't think the spec states anything about this particular combination. In a way, it's a bit contradictory in the sense the @PreMatching implies globally bound and @A implies locally bound.

 Do we want to say something about it or leave it as is?

-- Santiago