Valve

A Valve is an atomic request processing component that is assembled into the Pipeline of a Container. The name Valve is a metaphor for a processing unit in a real world pipeline, where a valve controls and/or modifies what flows through it.

Valve

The org.apache.catalina.Valve interface defines methods for obtaining the next Valve in the pipeline; a backgroundProcess() method to execute a periodic task; and an invoke(Request, Response) method, which performs the actual processing associated with this valve.

A Valve may act on the request and response in a number of different ways, including:

  • Examining and/or modifying the properties of the incoming ...

Get Tomcat 6 Developer's Guide 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.