A filter is nothing but a piece of code which can be reusable that will be transforming the content of HTTP requests, response and header information.