users@jax-rs-spec.java.net

[jax-rs-spec users] [jsr339-experts] Re: Re: _at_PostMatch vs. @PreMatch

From: Marek Potociar <marek.potociar_at_oracle.com>
Date: Thu, 28 Jun 2012 17:53:41 +0200

Experts,

anyone else has an opinion on the subj? I'd like to sort it out before PR release (still planned for Monday next week at the moment).

Marek

On Jun 18, 2012, at 11:33 AM, Sergey Beryozkin wrote:

> On 15/06/12 12:02, Marek Potociar wrote:
>> Contrary to RestEasy, Jersey does often use pre-match filters. But I'm fine discussing which annotation would be more convenient.
>>
> I guess I agree with Bill that post-match is used more often. We can do pre and post matches in CXF, but per matching is more about affecting the http method name or content-type/accept, without even knowing if it will lead to the successful match or not, while the post match is where the real work often occurs, example, checking the security context, etc
>
> Cheers, Sergey
>> Marek
>>
>> On Jun 11, 2012, at 10:47 PM, Bill Burke wrote:
>>
>>> I don't know about Jersey or CXF, but I do not have any prematch "filters" (well, the resteasy equivalent to filter). Was wondering if maybe prematch is an edge case, and the more often used case would be postmatch.
>>>
>>> Bill
>>>
>>> --
>>> Bill Burke
>>> JBoss, a division of Red Hat
>>> http://bill.burkecentral.com
>>>
>>
>
>
> --
> Sergey Beryozkin
>
> Talend Community Coders
> http://coders.talend.com/
>
> Blog: http://sberyozkin.blogspot.com