X Tutup
Skip to content

Latest commit

 

History

History
37 lines (27 loc) · 1.31 KB

File metadata and controls

37 lines (27 loc) · 1.31 KB
layout pattern
title Intercepting Filter
folder intercepting-filter
permalink /patterns/intercepting-filter/
categories Behavioral
language en
tags
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

X Tutup