Intercept JAX-RS Request with Jersey ContainerRequestFilter - Java Tutorial Blog
ContainerRequestFilter
ContainerRequestFilter this is an interface and should be implemented by the container request filters.
- We should annotate the filter class that implements this interface with
@Providerso that the JAX-RS runtime will discover this filter. As always, this annotation is sufficient and there is no other configuration required in web.xml @NameBindingannotation can be applied to match the request for filter execution.- By default filter is executed
post-matchand if we want the execution to be done before match we should use the@PreMatchingannotation.
Read full article from Intercept JAX-RS Request with Jersey ContainerRequestFilter - Java Tutorial Blog
No comments:
Post a Comment