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

How it works image

  1. A request is being dispatched with a matching criteria configured in ReplaceUtils.kt
  2. The ReplaceFilter detects it
  3. Already mentioned ReplaceUtils.kt picks up and applies a replace function for the matched string
  4. The resulted JSON with replaced string gets processed further down (other HTTP filters, servlets, etc.)

GitHub

View Github