java-design-patterns/intercepting-filter
2017-09-30 22:26:44 +03:00
..
2017-03-25 22:07:10 +01:00
2017-07-22 18:35:18 -04:00
2017-09-30 22:26:44 +03:00

layout, title, folder, permalink, pumlid, categories, tags
layout title folder permalink pumlid categories tags
pattern Intercepting Filter intercepting-filter /patterns/intercepting-filter/ RSfB3i8m303Hgy014k-vZN5DQkIuaJ_q-fGzkz7JtCL8Q-DolUsPAnu0ZcSVadizAzZfi6JBJiS4qJenqU6D7smRXmnh2pFPBM1YN05o_KwyKcoqb-ZFEEcVz_BPLqtz0W00 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