users@jersey.java.net

[Jersey] ContainerRequestFilter and Resources

From: Cemo Koc <cem.koc.fwd_at_gmail.com>
Date: Tue, 19 Jan 2010 05:26:44 -0800 (PST)

Hi,

As a security precaution we have implemented a login interceptor to for our
resources. But now I have another case that I have to bypass login filter.

My login interceptor is simply like this:

public class LoginResourceFilter implements ResourceFilter,
ContainerRequestFilter {

    @Context
    HttpServletRequest servletRequest;

    //

    @Override
    public ContainerRequest filter(ContainerRequest req) {
        //
        //
        //
        return isSecure;

    }
}
 


For now I am considering an annotation on my resource classes and methods
results in bypassing my login filter.

Ok, my question is how can I reach targeted resource and its annotations in
my login interceptor?

Thanks



-- 
View this message in context: http://n2.nabble.com/ContainerRequestFilter-and-Resources-tp4419975p4419975.html
Sent from the Jersey mailing list archive at Nabble.com.