I need to intercept the end of each request a user does against a Seam web app.
While Filters seem to be the right tool for catching requests before they hit your business logic, Interceptors seem to be useful as advices for individual classes…
Thanks!
Using the FILTERS you can intercept the request and response objects. Byn using the filter interface you can intercept the request obects.
void init(FilterConfig filterConfig)
throws ServletException
By using the doFilter method void doFilter(ServletRequest request,
ServletResponse response,
FilterChain chain)
throws IOException,
ServletException
using the above method you can intercept the request objects.