Replace Filter Demo
A demo project which demonstrates the work of javax.servlet.Filter
capable of escaping / modifying / removing a part of JSON request based on specified criteria.
How it works
- A request is being dispatched with a matching criteria configured in ReplaceUtils.kt
- The ReplaceFilter detects it
- Already mentioned ReplaceUtils.kt picks up and applies a replace function for the matched string
- The resulted JSON with replaced string gets processed further down (other HTTP filters, servlets, etc.)