Package org.apache.catalina.valves
package 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
.
-
ClassDescriptionAbstract implementation of the Valve interface that generates a web server access log with the detailed line contents matching a configurable pattern.AccessLogElement writes the partial message into the buffer.write bytes sent, excluding HTTP headers - %b, %BMarks an AccessLogElement as needing to be have the value cached at the start of the request rather than just recorded at the end as the source data for the element may not be available at the end of the request.Write connection status when response is completed - %Xwrite a specific cookie - %{xxx}cCache structure for formatted timestamps based on seconds.write time taken to process the request - %D, %Twrite time until first byte is written (commit time) in millis - %Fwrite incoming headers - %{xxx}iwrite HTTP status code of the response - %swrite local IP address - %Awrite remote logical username from identd (always returns '-') - %lwrite request method (GET, POST, etc.) - %mwrite Query string (prepended with a '?'write an attribute in the ServletRequest - %{xxx}rwrite first line of the request (method and request URI) - %rwrite requested URL path - %Uwrite a specific response header - %{xxx}owrite an attribute in the HttpSession - %{xxx}swrite user session ID - %Swrite any stringwrite thread name - %Iwrite remote user that was authenticated (if any), else '-' - %uThis is a concrete implementation of
AbstractAccessLogValve
that outputs the access log to a file.Manifest constants for theorg.apache.catalina.valves
package.Web crawlers can trigger the creation of many thousands of sessions as they crawl a site which may result in significant memory consumption.Implementation of a Valve that outputs HTML error pages.An implementation of the W3c Extended Log File Format.write a specific response header - x-O(xxx)Simple Valve that responds to cloud orchestrators health checks.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.Access log valve derivative that rewrites entries as JSON.write any charImplementation of a Valve that outputs error jsons.A Valve to detect situations where a load-balanced node receiving a request has been deactivated by the load balancer (JK_LB_ACTIVATION=DIS) and the incoming request has no valid session.Valve that implements per-request session persistence.Implementation of a Valve that proxies or redirects error reporting to other urls.Concrete implementation ofRequestFilterValve
that filters based on the string representation of the remote client's IP address optionally combined with the server connector port number.Concrete implementation ofRequestFilterValve
that filters based on the remote client's host name optionally combined with the server connector port number.Tomcat port of mod_remoteip, this valve replaces the apparent client remote IP address and hostname for the request with the IP address list presented by a proxy or a load balancer via a request headers (e.g.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 the regular expressions configured for this Valve.Implementation of a Valve that limits concurrency.When using mod_proxy_http, the client SSL information is not included in the protocol (unlike mod_jk and mod_proxy_ajp).This valve allows to detect requests that take a long time to process, which might indicate that the thread that is processing it is stuck.Convenience base class for implementations of the Valve interface.