类的使用
org.springframework.web.filter.OncePerRequestFilter
使用OncePerRequestFilter的程序包 程序包 说明 org.springframework.orm.hibernate5.support Classes supporting theorg.springframework.orm.hibernate5
package.org.springframework.orm.jpa.support Classes supporting theorg.springframework.orm.jpa
package.org.springframework.web.filter Provides generic filter base classes allowing for bean-style configuration.org.springframework.web.multipart.support Support classes for the multipart resolution framework.org.springframework.orm.hibernate5.support中OncePerRequestFilter的使用
org.springframework.orm.hibernate5.support中OncePerRequestFilter的子类 修饰符和类型 类 说明 class
OpenSessionInViewFilter
Servlet Filter that binds a Hibernate Session to the thread for the entire processing of the request.org.springframework.orm.jpa.support中OncePerRequestFilter的使用
org.springframework.orm.jpa.support中OncePerRequestFilter的子类 修饰符和类型 类 说明 class
OpenEntityManagerInViewFilter
Servlet Filter that binds a JPA EntityManager to the thread for the entire processing of the request.org.springframework.web.filter中OncePerRequestFilter的使用
org.springframework.web.filter中OncePerRequestFilter的子类 修饰符和类型 类 说明 class
AbstractRequestLoggingFilter
Base class forFilter
s that perform logging operations before and after a request is processed.class
CharacterEncodingFilter
Servlet Filter that allows one to specify a character encoding for requests.class
CommonsRequestLoggingFilter
Simple request logging filter that writes the request URI (and optionally the query string) to the Commons Log.class
CorsFilter
Filter
that handles CORS preflight requests and intercepts CORS simple and actual requests thanks to aCorsProcessor
implementation (DefaultCorsProcessor
by default) in order to add the relevant CORS response headers (likeAccess-Control-Allow-Origin
) using the providedCorsConfigurationSource
(for example anUrlBasedCorsConfigurationSource
instance.class
FormContentFilter
Filter
that parses form data for HTTP PUT, PATCH, and DELETE requests and exposes it as Servlet request parameters.class
ForwardedHeaderFilter
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)
.class
HiddenHttpMethodFilter
Filter
that converts posted method parameters into HTTP methods, retrievable viaHttpServletRequest.getMethod()
.class
HttpPutFormContentFilter
已过时。as of 5.1 in favor ofFormContentFilter
which is the same but also handles DELETE.class
RelativeRedirectFilter
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.class
RequestContextFilter
Servlet Filter that exposes the request to the current thread, through bothLocaleContextHolder
andRequestContextHolder
.class
ServletContextRequestLoggingFilter
Simple request logging filter that writes the request URI (and optionally the query string) to the ServletContext log.class
ShallowEtagHeaderFilter
Filter
that generates anETag
value based on the content on the response.org.springframework.web.multipart.support中OncePerRequestFilter的使用
org.springframework.web.multipart.support中OncePerRequestFilter的子类 修饰符和类型 类 说明 class
MultipartFilter
Servlet Filter that resolves multipart requests via aMultipartResolver
.