Interceptor pattern: Difference between revisions

Content deleted Content added
m Dated {{Clarify}}. (Build KF)
m clean up using AWB (8884)
Line 1:
[[fileFile:Interceptor.VSD Example.png|thumb|upright=1.6|Example of an interceptor]]
In the field of [[software development]], an '''interceptor pattern''' is a [[software design pattern]] that is used when software systems or [[software framework|framework]]s want to offer a way to change, or augment, their usual processing cycle. For example, a (simplified) typical processing sequence for a web-server is to receive a URI from the browser, map it to a file on disk, open the file and send its contents to the browser. Any of these steps could be replaced or changed, i.e. by replacing the way URIs are mapped to filenames, or by inserting a new step which processes the files contents.