users@jersey.java.net

Registering a ResourceFilterFactory using Jersey api

From: Erdinc Yilmazel <erdinc_at_yilmazel.com>
Date: Mon, 23 Mar 2009 19:05:57 +0000

Hi,

Is there a way of registering a ResourceFilterFactory class using
Jersey API instead of declaring an init param in web.xml? I am using a
custom servlet filter which extends ServletContainer. I am overriding
some of ServletContainer's methods. I am trying to register a
ResourceFilterFactory class in configure(FilterConfig fc,
ResourceConfig rc, WebApplication wa) method. Neither WebApplication
interface nor ResourceConfig class allow me to add a
ResourceFilterFactory class. And the FilterFactory class is declared
final.

Thank you,
Erdinc