org.apache.catalina.filters (Apache Tomcat 11.0.23 API Documentation)
Description: declaration: package: org.apache.catalina.filters

# Package org.apache.catalina.filters

package org.apache.catalina.filters

- Related Packages
  Package
  Description
  org.apache.catalina
- Class
  Description
  AddDefaultCharsetFilter
  Filter that explicitly sets the default character set for media subtypes of the "text" type to ISO-8859-1, or another user defined character set.
  AddDefaultCharsetFilter.ResponseWrapper
  Wrapper that adds a character set for text media types if no character set is specified.
  Constants
  Manifest constants for this Java package.
  CorsFilter
  A `Filter` that enable client-side cross-origin requests by implementing W3C's CORS (Cross-Origin Resource Sharing) specification for resources.
  CorsFilter.CORSRequestType
  Enumerates varies types of CORS requests.
  CsrfPreventionFilter
  Provides basic CSRF protection for a web application.
  CsrfPreventionFilter.CsrfResponseWrapper
  Wrapper for `HttpServletResponse` that adds CSRF nonces to encoded URLs.
  CsrfPreventionFilter.LruCache<T>
  Despite its name, this is a FIFO cache not an LRU cache.
  CsrfPreventionFilter.MimePredicate
  A no-nonce Predicate that evaluates a MIME type instead of a URL.
  CsrfPreventionFilter.NonceCache<T>
  Interface for a cache of nonces used for CSRF protection.
  CsrfPreventionFilter.PatternPredicate
  A no-nonce Predicate that matches a regular expression.
  CsrfPreventionFilter.PrefixPredicate
  A no-nonce Predicate that matches a prefix.
  CsrfPreventionFilter.SuffixPredicate
  A no-nonce Predicate that matches a suffix.
  CsrfPreventionFilterBase
  Base class for CSRF prevention filters.
  ExpiresFilter
  ExpiresFilter is a Java Servlet API port of Apache mod_expires to add '`Expires`' and '`Cache-Control: max-age=`' headers to HTTP response according to its '`Content-Type`'.
  ExpiresFilter.Duration
  Duration composed of an `ExpiresFilter.Duration.amount` and a `ExpiresFilter.Duration.unit`
  ExpiresFilter.DurationUnit
  Duration unit
  ExpiresFilter.ExpiresConfiguration
  Main piece of configuration of the filter.
  ExpiresFilter.StartingPoint
  Expiration configuration starting point.
  FilterBase
  Base class for filters that provides generic initialisation and a simple no-op destruction.
  HttpHeaderSecurityFilter
  Provides a single configuration point for security measures that required the addition of one or more HTTP headers to the response.
  RateLimitFilter
  Servlet filter that can help mitigate Denial of Service (DoS) and Brute Force attacks by limiting the number of a requests that are allowed from a single IP address within a time window (also referred to as a time bucket), e.g. 300 Requests per 60 seconds.
  RemoteAddrFilter
  Deprecated.
  This Filter will be removed in Tomcat 12 onwards.
  RemoteCIDRFilter
  A servlet filter that restricts access to resources based on the remote client's IP address or CIDR block.
  RemoteHostFilter
  Concrete implementation of `RequestFilter` that filters based on the remote client's host name.
  RemoteIpFilter
  Servlet filter to integrate "X-Forwarded-For" and "X-Forwarded-Proto" HTTP headers.
  RemoteIpFilter.XForwardedRequest
  Wrapper for `HttpServletRequest` that allows modification of headers, remote address, scheme, and other properties used by the RemoteIpFilter.
  RequestDumperFilter
  Implementation of a Filter that logs interesting contents from the specified Request (before processing) and the corresponding Response (after processing).
  RequestFilter
  Implementation of a Filter 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 Filter.
  RestCsrfPreventionFilter
  Provides basic CSRF protection for REST APIs.
  SessionInitializerFilter
  A `Filter` that initializes the `HttpSession` for the `HttpServletRequest` by calling its getSession() method.
  SetCharacterEncodingFilter
  Example filter that sets the character encoding to be used in parsing the incoming request, either unconditionally or only if the client did not specify a character encoding.