Uses of Interface
org.springframework.web.servlet.HandlerInterceptor
Package
Description
Contains server-side support for testing Spring MVC applications.
Support for testing Spring MVC applications via
WebTestClient
with MockMvc
for server request
handling.Contains built-in
ResultMatcher
and ResultHandler
implementations.Contains built-in
MockMvcBuilder
implementations.Provides servlets that integrate with the application context
infrastructure, and the core interfaces and classes for the
Spring web MVC framework.
Annotation-based setup for Spring MVC.
Provides standard HandlerMapping implementations,
including abstract base classes for custom implementations.
Locale support classes for Spring's web MVC framework.
Standard controller implementations for the Servlet MVC framework that comes with
Spring.
Support classes for serving static resources.
Theme support classes for Spring's web MVC framework.
-
Uses of HandlerInterceptor in org.springframework.test.web.servlet
Modifier and TypeMethodDescriptionMvcResult.getInterceptors()
Return interceptors around the handler. -
Uses of HandlerInterceptor in org.springframework.test.web.servlet.client
Modifier and TypeMethodDescriptionMockMvcWebTestClient.ControllerSpec.interceptors
(HandlerInterceptor... interceptors) Add global interceptors.MockMvcWebTestClient.ControllerSpec.mappedInterceptors
(String[] pathPatterns, HandlerInterceptor... interceptors) Add interceptors for specific patterns. -
Uses of HandlerInterceptor in org.springframework.test.web.servlet.result
Modifier and TypeMethodDescriptionprotected void
PrintingResultHandler.printHandler
(Object handler, HandlerInterceptor[] interceptors) Print the handler. -
Uses of HandlerInterceptor in org.springframework.test.web.servlet.setup
Modifier and TypeMethodDescriptionStandaloneMockMvcBuilder.addInterceptors
(HandlerInterceptor... interceptors) Add interceptors mapped to all incoming requests.StandaloneMockMvcBuilder.addMappedInterceptors
(String[] pathPatterns, HandlerInterceptor... interceptors) Add interceptors mapped to a set of path patterns. -
Uses of HandlerInterceptor in org.springframework.web.servlet
Modifier and TypeInterfaceDescriptioninterface
ExtendsHandlerInterceptor
with a callback method invoked after the start of asynchronous request handling.Modifier and TypeMethodDescriptionHandlerExecutionChain.getInterceptors()
Return the array of interceptors to apply (in the given order).Modifier and TypeMethodDescriptionHandlerExecutionChain.getInterceptorList()
Return the list of interceptors to apply (in the given order).Modifier and TypeMethodDescriptionvoid
HandlerExecutionChain.addInterceptor
(int index, HandlerInterceptor interceptor) Add the given interceptor at the specified index of this chain.void
HandlerExecutionChain.addInterceptor
(HandlerInterceptor interceptor) Add the given interceptor to the end of this chain.void
HandlerExecutionChain.addInterceptors
(HandlerInterceptor... interceptors) Add the given interceptors to the end of this chain.ModifierConstructorDescriptionHandlerExecutionChain
(Object handler, HandlerInterceptor... interceptors) Create a new HandlerExecutionChain.ModifierConstructorDescriptionHandlerExecutionChain
(Object handler, List<HandlerInterceptor> interceptorList) Create a new HandlerExecutionChain. -
Uses of HandlerInterceptor in org.springframework.web.servlet.config.annotation
Modifier and TypeMethodDescriptionInterceptorRegistry.addInterceptor
(HandlerInterceptor interceptor) Adds the providedHandlerInterceptor
.ModifierConstructorDescriptionInterceptorRegistration
(HandlerInterceptor interceptor) Create anInterceptorRegistration
instance. -
Uses of HandlerInterceptor in org.springframework.web.servlet.handler
Modifier and TypeClassDescriptionclass
Interceptor that places the configuredConversionService
in request scope so it's available during request processing.final class
Wraps aHandlerInterceptor
and uses URL patterns to determine whether it applies to a given request.class
Interceptor that checks the authorization of the current user via the user's roles, as evaluated by HttpServletRequest's isUserInRole method.class
Adapter that implements the Servlet HandlerInterceptor interface and wraps an underlying WebRequestInterceptor.Modifier and TypeMethodDescriptionprotected HandlerInterceptor
AbstractHandlerMapping.adaptInterceptor
(Object interceptor) Adapt the given interceptor object toHandlerInterceptor
.protected final HandlerInterceptor[]
AbstractHandlerMapping.getAdaptedInterceptors()
Return the adapted interceptors asHandlerInterceptor
array.MappedInterceptor.getInterceptor()
The targetHandlerInterceptor
to invoke in case of a match.Modifier and TypeMethodDescriptionprotected void
AbstractHandlerMapping.detectMappedInterceptors
(List<HandlerInterceptor> mappedInterceptors) Detect beans of typeMappedInterceptor
and add them to the list of mapped interceptors.ModifierConstructorDescriptionMappedInterceptor
(String[] includePatterns, String[] excludePatterns, HandlerInterceptor interceptor) Variant ofMappedInterceptor(String[], String[], HandlerInterceptor, PathPatternParser)
without a provided parser.MappedInterceptor
(String[] includePatterns, String[] excludePatterns, HandlerInterceptor interceptor, PathPatternParser parser) Create an instance with the given include and exclude patterns along with the target interceptor for the mappings.MappedInterceptor
(String[] includePatterns, HandlerInterceptor interceptor) Variant ofMappedInterceptor(String[], String[], HandlerInterceptor, PathPatternParser)
with include patterns only. -
Uses of HandlerInterceptor in org.springframework.web.servlet.i18n
Modifier and TypeClassDescriptionclass
Interceptor that allows for changing the current locale on every request, via a configurable request parameter (default parameter name: "locale"). -
Uses of HandlerInterceptor in org.springframework.web.servlet.mvc
Modifier and TypeClassDescriptionclass
Handler interceptor that checks the request for supported methods and a required session and prepares the response by applying the configured cache settings. -
Uses of HandlerInterceptor in org.springframework.web.servlet.resource
Modifier and TypeClassDescriptionclass
An interceptor that exposes theResourceUrlProvider
instance it is configured with as a request attribute. -
Uses of HandlerInterceptor in org.springframework.web.servlet.theme
Modifier and TypeClassDescriptionclass
Deprecated.as of 6.0, with no concrete replacement