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.
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.
Valve may act on the request and response in a number of different ways, including: