mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-14 14:58:39 +00:00
932836f68b
* update license plugin * suppress linelength and emptylineseparator rules * fix checkstyle error Co-authored-by: Subhrodip Mohanta <hello@subho.xyz>
layout, title, folder, permalink, categories, language, tags
| layout | title | folder | permalink | categories | language | tags | |
|---|---|---|---|---|---|---|---|
| pattern | Intercepting Filter | intercepting-filter | /patterns/intercepting-filter/ | Behavioral | en |
|
Intent
Provide pluggable filters to conduct necessary pre-processing and post-processing to requests from a client to a target
Class diagram
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
