I\'m trying to use a ContainerRequestFilter to enforce some authentication on a Tomcat based Jersey application. I followed this document. Problem : the filter
ContainerRequestFilter
Some hints:
Make sure you're using the right imports in your filter:
import javax.ws.rs.container.ContainerRequestContext;
import javax.ws.rs.container.ContainerRequestFilter;
Add the @Provider annotation
@Provider