java-design-patterns/intercepting-filter
Ilkka Seppälä 417f21ed3d
Code cleanup (#1461)
* Code cleanup

* Fix flux tests

* Fix checkstyle errors

* Fix compile error
2020-07-30 20:28:47 +03:00
..
2019-12-07 18:03:49 +02:00
2020-07-30 20:28:47 +03:00
2019-12-18 22:04:08 +02:00

layout, title, folder, permalink, categories, tags
layout title folder permalink categories tags
pattern Intercepting Filter intercepting-filter /patterns/intercepting-filter/ Behavioral
Decoupling

Intent

Provide pluggable filters to conduct necessary pre-processing and post-processing to requests from a client to a target

Class diagram

alt text

Applicability

Use the Intercepting Filter pattern when

  • a system uses pre-processing or post-processing requests
  • a system should do the authentication/ authorization/ logging or tracking of request and then pass the requests to corresponding handlers
  • you want a modular approach to configuring pre-processing and post-processing schemes

Tutorials

Real world examples

Credits