A filter dynamically intercepts requests and responses to transform or use the information contained in the requests or responses.
Filters can be applied to any resource that can be specified with a URL.
Filters are created and configured through the <filter> and <filter-name> elements in the web.xml Web Application deployment descriptor.
IntelliJ IDEA provides a friendly interface for configuring filters in the Web Module Editor window.
Creating and configuring a filter includes: