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

[jsr339-experts] Re: interceptors

From: Guilherme Silveira <guilherme.silveira_at_caelum.com.br>
Date: Fri, 4 Mar 2011 12:01:28 -0300

Perfect.

Regards

Guilherme Silveira
Caelum | Ensino e Inovação
http://www.caelum.com.br/



On Fri, Mar 4, 2011 at 11:56 AM, Bill Burke <bburke_at_redhat.com> wrote:
>
>
> On 3/4/11 9:51 AM, Guilherme Silveira wrote:
>>
>> Hi Bill,
>>
>>> - Pre-process before matching
>>> - Around MessageBodyReader
>>> - Around MessageBodyWriter
>>> - After method was called before marshalling (not sure if we ever had a
>>> usecase for this)
>>
>> Are those methods defined within the Interceptor interface or
>> different interceptor interfaces?
>>
>
> Different as you need JAX-RS specific information:  headers, stream,
> annotations, etc...  I don't think the Interceptor interface allows for
> method injection of dependencies so I don't think it will work.
>
> Bill
>
> --
> Bill Burke
> JBoss, a division of Red Hat
> http://bill.burkecentral.com
>