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

[jsr339-experts] Re: [jax-rs-spec users] Re: Proposal for Pre-Match Filters

From: Santiago Pericas-Geertsen <Santiago.PericasGeertsen_at_oracle.com>
Date: Mon, 14 Nov 2011 09:34:29 -0500

On Nov 11, 2011, at 7:08 PM, Bill Burke wrote:

> What is the usecase for a pre-match filter? It just seems there's very little you can do before you know what resource(class/method) the http request is bound to.

 Essentially anything that updates the input to the matching algorithm. The canonical example is a filter that overrides the HTTP method, e.g. using X-HTTP-Method-Override (quite popular given that a lot of routers drop non-GET/POST requests).

-- Santiago

>
> On 11/8/11 11:52 AM, Santiago Pericas-Geertsen wrote:
>> Hello Experts,
>>
>> A new proposal to support pre-match filters is ready for review [1]. The
>> wiki includes a couple of other minor changes to simplify the API.
>> Namely, making @GlobalBinding the default (and dropping it) as well as a
>> new injectable type ResourceInfo.
>>
>> -- Santiago
>>
>> [1] http://java.net/projects/jax-rs-spec/pages/PreMatchingFilters
>
> --
> Bill Burke
> JBoss, a division of Red Hat
> http://bill.burkecentral.com