A Servlet Filter can be implemented by creating a Class
that implements javax.servlet.Filter
In this spike the logic that was on the WebContextServlet.java
, has been moved to a WebContextFilter.java
.
This way we were able to rely on the urlPatterns
of the Filter
, that are more flexible than the Servlet
allows. And other positive outcome was the fact that this Filter implementation is very similar to Pentaho Server PentahoWebContextFilter.java
, enabling a future story to unify this two separate implementations into one