org.apache.catalina.valves |
This package contains a variety of small Valve implementations that do
not warrant being packaged separately. In addition, there is a convenience
base class (ValveBase ) that supports the usual mechanisms for
including custom Valves into the corresponding Pipeline.
Other packages that include Valves include
org.apache.tomcat.logger and
org.apache.tomcat.security .
|
Java Source File Name | Type | Comment |
AccessLogValve.java | Class | Implementation of the Valve interface that generates a web server
access log with the detailed line contents matching a configurable pattern.
The syntax of the available patterns is similar to that supported by the
Apache mod_log_config module. |
CertificatesValve.java | Class | Implementation of a Valve that deals with SSL client certificates, as
follows:
|
Constants.java | Class | Manifest constants for the org.apache.catalina.valves
package.
author: Craig R. |
ErrorDispatcherValve.java | Class | Implementation of a Valve that handles the error dispatch (that is, will
forward to the appropriate error page if necessary).
This Valve should be attached at the Host level, although it will work
if attached to a Context.
WARNING: This valve is necessary for Servlet API compliance.
author: Remy Maucherat author: Craig R. |
ErrorReportValve.java | Class | Implementation of a Valve that outputs HTML error pages.
This Valve should be attached at the Host level, although it will work
if attached to a Context.
HTML code from the Cocoon 2 project.
author: Remy Maucherat author: Craig R. |
JDBCAccessLogValve.java | Class |
This Tomcat extension logs server access directly to a database, and can
be used instead of the regular file-based access log implemented in
AccessLogValve.
To use, copy into the server/classes directory of the Tomcat installation
and configure in server.xml as:
<Valve className="AccessLogDBValve"
driverName="your_jdbc_driver"
connectionURL="your_jdbc_url"
pattern="combined" resolveHosts="false"
/>
Many parameters can be configured, such as the database connection (with
driverName and connectionURL ),
the table name (tableName )
and the field names (corresponding to the get/set method names).
The same options as AccessLogValve are supported, such as
resolveHosts and pattern ("common" or "combined"
only).
When Tomcat is started, a database connection (with autoReconnect option)
is created and used for all the log activity. |
RemoteAddrValve.java | Class | Concrete implementation of RequestFilterValve that filters
based on the string representation of the remote client's IP address.
author: Craig R. |
RemoteHostValve.java | Class | Concrete implementation of RequestFilterValve that filters
based on the string representation of the remote client's IP address.
author: Craig R. |
RequestDumperValve.java | Class | Implementation of a Valve that logs interesting contents from the
specified Request (before processing) and the corresponding Response
(after processing). |
RequestFilterValve.java | Class | Implementation of a Valve that performs filtering based on comparing the
appropriate request property (selected based on which subclass you choose
to configure into your Container's pipeline) against a set of regular
expressions configured for this Valve.
This valve is configured by setting the allow and/or
deny properties to a comma-delimited list of regular
expressions (in the syntax supported by the jakarta-regexp library) to
which the appropriate request property will be compared. |
ValveBase.java | Class | Convenience base class for implementations of the Valve interface.
A subclass MUST implement an invoke()
method to provide the required functionality, and MAY
implement the Lifecycle interface to provide configuration
management and lifecycle support.
author: Craig R. |