Multiple choice technology web technology

Out of the following, which interface, would one have to implement to implement an intercepting filter?

  1. Javax.servlet.Filter

  2. Javax.servlet.FilterChain

  3. Javax.servlet.FilterConfig

  4. None of the above

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The Intercepting Filter pattern in Java EE is implemented by creating a class that implements the javax.servlet.Filter interface. This interface defines methods like doFilter() that allow preprocessing and postprocessing of requests, enabling tasks like authentication, logging, and compression.