Skip to content

Instantly share code, notes, and snippets.

View davidmsantos90's full-sized avatar
👾
Doing stuff

David Santos davidmsantos90

👾
Doing stuff
View GitHub Profile
@davidmsantos90
davidmsantos90 / .env
Last active July 17, 2024 10:08
Download, unzip and run the latest pentaho-server or pdi-client build
# place where builds will be downloaded and unzipped
root_directory=$(echo ~/Pentaho)
# build repo url
# build_repository=https://build.orl.eng.hitachivantara.com
# new build hosted (wip)
build_repository=http://172.16.11.57
# other configs

Servlet Filter

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