java-design-patterns/intercepting-filter
2018-01-01 16:50:05 +02:00
..
2017-11-28 20:55:52 +02:00
2017-12-31 16:29:48 +09:00
2018-01-01 16:50:05 +02:00
2017-11-28 21:28:53 +02:00

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

Intent

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

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

Real world examples

Credits