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

From: Santiago Pericas-Geertsen <>
Date: Thu, 13 Sep 2012 11:52:35 -0400

On Sep 13, 2012, at 10:49 AM, Sergey Beryozkin wrote:

>> Especially when we have different methods having their own name-bound
>> filters, with some of the name-bound filters mixed up between different
>> methods. It can be awkward to ensure say all name-bound ones have
>> priority number set up right for an expectation that say global filters
>> will run before or after name bound ones
> PreMatch global filters are having a higher priority over Post-Match and name-bound filters

 Is not that they have higher priority, is that they are part of a _separate_ filter chain. Within that chain, they are still sorted by priority. Please check the spec on that. I'm also adding some diagrams in an appendix to clarify this processing pipeline.

-- Santiago