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

[jsr339-experts] Re: [jax-rs-spec users] Ordering of global and name-bound filters

From: Santiago Pericas-Geertsen <Santiago.PericasGeertsen_at_oracle.com>
Date: Thu, 13 Sep 2012 09:53:35 -0400

On Sep 13, 2012, at 7:17 AM, Sergey Beryozkin wrote:

> When selecting the filters to be run, before a given selected resource method is invoked, what priority should be given to global filters as opposed to name-bound ones ?
>
> I know BindingPriority is there, but should name-bound filters be run first, and global filters afterwards, no matter of what their individual priorities are ?

 No, they are part of the same "post-matching chain". Therefore, should be sorted by binding priority regardless of their kind.

-- Santiago