2015-08-13 23:54:40 +02:00
|
|
|
---
|
|
|
|
layout: pattern
|
|
|
|
title: Intercepting Filter
|
|
|
|
folder: intercepting-filter
|
2015-08-15 18:03:05 +02:00
|
|
|
permalink: /patterns/intercepting-filter/
|
2015-08-20 21:40:07 +02:00
|
|
|
categories: Behavioral
|
|
|
|
tags: Java
|
2015-08-13 23:54:40 +02:00
|
|
|
---
|
|
|
|
|
|
|
|
**Intent:** Provide pluggable filters to conduct necessary pre-processing and
|
|
|
|
post-processing to requests from a client to a target
|
|
|
|
|
|
|
|

|
|
|
|
|
|
|
|
**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
|
2015-08-15 18:03:05 +02:00
|
|
|
* you want a modular approach to configuring pre-processing and post-processing schemes
|
2015-09-03 18:17:07 +05:30
|
|
|
|
|
|
|
**Credits:**
|
|
|
|
|
|
|
|
* [TutorialsPoint - Intercepting Filter](http://www.tutorialspoint.com/design_pattern/intercepting_filter_pattern.htm)
|