Intercepting Filter Pattern

The presentation-tier request handling mechanism receives many different types of requests, which require varied types of processing. Some requests are simply forwarded to the appropriate handler component, while other requests must be modified, audited, or uncompressed before being further processed.
One of the best example for Intercepting Filter Pattern is Spring Security's DelegatingFilterProxy , which will intercept the HTTP request and do the authentication check. Spring security build on chain of filters.

Let's see how the Intercepting Filter Pattern solve the problem with examples.
This pattern is divided into a number of sections for simplicity like problem, forces, solution etc.

Table of contents

Problem
Forces
Solution
Explanation
Structure - Class Diagram, Sequence Diagram
Participants and Responsibilities
Implementation
Consequences
Applicability
Real world examples
References


Read above topics on http://www.javaguides.net/2018/08/intercepting-filter-design-pattern-in-java.html

Comments

Popular posts from this blog

Design Patterns used in Hibernate Framework

Value List Handler