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

[jsr339-experts] Re: interceptors

From: Bill Burke <bburke_at_redhat.com>
Date: Fri, 04 Mar 2011 09:56:32 -0500

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