Package org.springframework.web.filter
@NonNullApi
@NonNullFields
package org.springframework.web.filter
Provides generic filter base classes allowing for bean-style configuration.
-
ClassesClassDescriptionBase class for
Filters that perform logging operations before and after a request is processed.Servlet Filter that allows one to specify a character encoding for requests.Simple request logging filter that writes the request URI (and optionally the query string) to the Commons Log.A generic composite servletFilterthat just delegates its behavior to a chain (list) of user-supplied filters, achieving the functionality of aFilterChain, but conveniently using onlyFilterinstances.Filterto handle CORS pre-flight requests and intercept CORS simple and actual requests with aCorsProcessor, and to update the response, e.g.Proxy for a standard Servlet Filter, delegating to a Spring-managed bean that implements the Filter interface.Filterthat parses form data for HTTP PUT, PATCH, and DELETE requests and exposes it as Servlet request parameters.Extract values from "Forwarded" and "X-Forwarded-*" headers, wrap the request and response, and make they reflect the client-originated protocol and address in the following methods:getServerName()getServerPort()getScheme()isSecure()sendRedirect(String).Simple base implementation ofFilterwhich treats its config parameters (init-paramentries within thefiltertag inweb.xml) as bean properties.Filterthat converts posted method parameters into HTTP methods, retrievable viaHttpServletRequest.getMethod().Filter base class that aims to guarantee a single execution per request dispatch, on any servlet container.OverridesHttpServletResponse.sendRedirect(String)and handles it by setting the HTTP status and "Location" headers, which keeps the Servlet container from re-writing relative redirect URLs into absolute ones.Servlet Filter that exposes the request to the current thread, through bothLocaleContextHolderandRequestContextHolder.Simple request logging filter that writes the request URI (and optionally the query string) to the ServletContext log.Filterthat generates anETagvalue based on the content on the response.