A question related to this:

I have the HttpRequest injected into my RequestHandler as a @Resource, and
it is not null, but accessing any of the values throws a NPE.

So I'm guessing trying to access the http request info in an interceptor is
an inappropriate approach.  What would be the more appropriate approach?
CXF Filter? Servlet Filter?

Thanks,
Linus


-----Message d'origine-----
De : Sergey Beryozkin [mailto:[email protected]] 
Envoyé : Monday, September 21, 2009 7:03 PM
À : [email protected]
Objet : Re: Filters

Hi

Some information is here :
http://cxf.apache.org/docs/jax-rs.html#JAX-RS-Logging

and

http://cxf.apache.org/docs/jax-rs.html#JAX-RS-Filters

You can register a logging feature as shown in the docs. You can register
CXf JAX-RS filters as other JAX-RS providers.
We don't have a ServletFilter yet which can do logging - but may be we
should also ship the one with the CXF HTTP transport module -
I'll add a task for it.

cheers, Sergey

----- Original Message ----- 
From: "Nishant Chandra" <[email protected]>
To: <[email protected]>
Sent: Monday, September 21, 2009 3:18 PM
Subject: Filters


> HI,
>
> I am looking for advice on using filters for my REST based
> application. I want to log start, end time and HTTP status code.
> I read about CXF and JAXRS filters. I am not sure how this can be
> achieved? Will servlet filter be a good idea?
>
> Thanks,
> Nishant




Reply via email to