C H A P T E R  8

Valves and Servlet Filters

In this chapter, we will discuss two similar technologies: valves and filters. These technologies were invented for the purpose of intercepting requests for one or more web applications. The first, Tomcat Valve, is a proprietary Tomcat technology. The second, servlet filters, is a server-independent technology that was introduced as part of the Java Servlet specification (since version 2.3). Both of these technologies are used to process HTTP requests and response objects.

We will cover the following:

  • Define Tomcat valves and servlet filters, their similarities, differences and usage scenarios
  • Describe valve implementation and configuration
  • Introduce valves shipped with Apache Tomcat 7 and their ...

Get Apache Tomcat 7 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.