Skip to content

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.

Notifications You must be signed in to change notification settings

vkrava4/replace-filter-demo

Repository files navigation

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.)

About

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.

Topics

Resources

Stars

Watchers

Forks

Languages