Uses of Interface
org.springframework.web.servlet.HandlerInterceptor
Packages that use HandlerInterceptor Package Description org.springframework.test.web.servlet Contains server-side support for testing Spring MVC applications.org.springframework.test.web.servlet.result Contains built-inResultMatcherandResultHandlerimplementations.org.springframework.test.web.servlet.setup Contains built-inMockMvcBuilderimplementations.org.springframework.web.servlet Provides servlets that integrate with the application context infrastructure, and the core interfaces and classes for the Spring web MVC framework.org.springframework.web.servlet.config.annotation Annotation-based setup for Spring MVC.org.springframework.web.servlet.handler Provides standard HandlerMapping implementations, including abstract base classes for custom implementations.org.springframework.web.servlet.i18n Locale support classes for Spring's web MVC framework.org.springframework.web.servlet.mvc Standard controller implementations for the Servlet MVC framework that comes with Spring.org.springframework.web.servlet.resource Support classes for serving static resources.org.springframework.web.servlet.theme Theme support classes for Spring's web MVC framework.Uses of HandlerInterceptor in org.springframework.test.web.servlet
Methods in org.springframework.test.web.servlet that return HandlerInterceptor Modifier and Type Method Description HandlerInterceptor[]MvcResult. getInterceptors()Return interceptors around the handler.Uses of HandlerInterceptor in org.springframework.test.web.servlet.result
Methods in org.springframework.test.web.servlet.result with parameters of type HandlerInterceptor Modifier and Type Method Description protected voidPrintingResultHandler. printHandler(Object handler, HandlerInterceptor[] interceptors)Print the handler.Uses of HandlerInterceptor in org.springframework.test.web.servlet.setup
Methods in org.springframework.test.web.servlet.setup with parameters of type HandlerInterceptor Modifier and Type Method Description StandaloneMockMvcBuilderStandaloneMockMvcBuilder. addInterceptors(HandlerInterceptor... interceptors)Add interceptors mapped to all incoming requests.StandaloneMockMvcBuilderStandaloneMockMvcBuilder. addMappedInterceptors(String[] pathPatterns, HandlerInterceptor... interceptors)Add interceptors mapped to a set of path patterns.Uses of HandlerInterceptor in org.springframework.web.servlet
Subinterfaces of HandlerInterceptor in org.springframework.web.servlet Modifier and Type Interface Description interfaceAsyncHandlerInterceptorExtendsHandlerInterceptorwith a callback method invoked after the start of asynchronous request handling.Methods in org.springframework.web.servlet that return HandlerInterceptor Modifier and Type Method Description HandlerInterceptor[]HandlerExecutionChain. getInterceptors()Return the array of interceptors to apply (in the given order).Methods in org.springframework.web.servlet with parameters of type HandlerInterceptor Modifier and Type Method Description voidHandlerExecutionChain. addInterceptor(int index, HandlerInterceptor interceptor)Add the given interceptor at the specified index of this chain.voidHandlerExecutionChain. addInterceptor(HandlerInterceptor interceptor)Add the given interceptor to the end of this chain.voidHandlerExecutionChain. addInterceptors(HandlerInterceptor... interceptors)Add the given interceptors to the end of this chain.Constructors in org.springframework.web.servlet with parameters of type HandlerInterceptor Constructor Description HandlerExecutionChain(Object handler, HandlerInterceptor... interceptors)Create a new HandlerExecutionChain.Uses of HandlerInterceptor in org.springframework.web.servlet.config.annotation
Methods in org.springframework.web.servlet.config.annotation with parameters of type HandlerInterceptor Modifier and Type Method Description InterceptorRegistrationInterceptorRegistry. addInterceptor(HandlerInterceptor interceptor)Adds the providedHandlerInterceptor.Constructors in org.springframework.web.servlet.config.annotation with parameters of type HandlerInterceptor Constructor Description InterceptorRegistration(HandlerInterceptor interceptor)Create anInterceptorRegistrationinstance.Uses of HandlerInterceptor in org.springframework.web.servlet.handler
Classes in org.springframework.web.servlet.handler that implement HandlerInterceptor Modifier and Type Class Description classConversionServiceExposingInterceptorInterceptor that places the configuredConversionServicein request scope so it's available during request processing.classHandlerInterceptorAdapterAbstract adapter class for theAsyncHandlerInterceptorinterface, for simplified implementation of pre-only/post-only interceptors.classMappedInterceptorContains and delegates calls to aHandlerInterceptoralong with include (and optionally exclude) path patterns to which the interceptor should apply.classUserRoleAuthorizationInterceptorInterceptor that checks the authorization of the current user via the user's roles, as evaluated by HttpServletRequest's isUserInRole method.classWebRequestHandlerInterceptorAdapterAdapter that implements the Servlet HandlerInterceptor interface and wraps an underlying WebRequestInterceptor.Methods in org.springframework.web.servlet.handler that return HandlerInterceptor Modifier and Type Method Description protected HandlerInterceptorAbstractHandlerMapping. adaptInterceptor(Object interceptor)Adapt the given interceptor object toHandlerInterceptor.protected HandlerInterceptor[]AbstractHandlerMapping. getAdaptedInterceptors()Return the adapted interceptors asHandlerInterceptorarray.HandlerInterceptorMappedInterceptor. getInterceptor()The actualHandlerInterceptorreference.Method parameters in org.springframework.web.servlet.handler with type arguments of type HandlerInterceptor Modifier and Type Method Description protected voidAbstractHandlerMapping. detectMappedInterceptors(List<HandlerInterceptor> mappedInterceptors)Detect beans of typeMappedInterceptorand add them to the list of mapped interceptors.Constructors in org.springframework.web.servlet.handler with parameters of type HandlerInterceptor Constructor Description MappedInterceptor(String[] includePatterns, String[] excludePatterns, HandlerInterceptor interceptor)Create a new MappedInterceptor instance.MappedInterceptor(String[] includePatterns, HandlerInterceptor interceptor)Create a new MappedInterceptor instance.Uses of HandlerInterceptor in org.springframework.web.servlet.i18n
Classes in org.springframework.web.servlet.i18n that implement HandlerInterceptor Modifier and Type Class Description classLocaleChangeInterceptorInterceptor 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
Classes in org.springframework.web.servlet.mvc that implement HandlerInterceptor Modifier and Type Class Description classWebContentInterceptorHandler interceptor that checks the request and prepares the response.Uses of HandlerInterceptor in org.springframework.web.servlet.resource
Classes in org.springframework.web.servlet.resource that implement HandlerInterceptor Modifier and Type Class Description classResourceUrlProviderExposingInterceptorAn interceptor that exposes theResourceUrlProviderinstance it is configured with as a request attribute.Uses of HandlerInterceptor in org.springframework.web.servlet.theme
Classes in org.springframework.web.servlet.theme that implement HandlerInterceptor Modifier and Type Class Description classThemeChangeInterceptorInterceptor that allows for changing the current theme on every request, via a configurable request parameter (default parameter name: "theme").