# Uses of Class
org.springframework.web.servlet.config.annotation.InterceptorRegistration

Packages that use InterceptorRegistration
Package
Description
org.springframework.web.servlet.config.annotation
Annotation-based setup for Spring MVC.

## Uses of InterceptorRegistration in org.springframework.web.servlet.config.annotation

Methods in org.springframework.web.servlet.config.annotation that return InterceptorRegistration
Modifier and Type
Method
Description
`InterceptorRegistration`
InterceptorRegistry.`addInterceptor(HandlerInterceptor interceptor)`
Adds the provided `HandlerInterceptor`.
`InterceptorRegistration`
InterceptorRegistration.`addPathPatterns(String... patterns)`
Add patterns for URLs the interceptor should be included in.
`InterceptorRegistration`
InterceptorRegistration.`addPathPatterns(List<String> patterns)`
List-based variant of `addPathPatterns(String...)`.
`InterceptorRegistration`
InterceptorRegistry.`addWebRequestInterceptor(org.springframework.web.context.request.WebRequestInterceptor interceptor)`
Adds the provided `WebRequestInterceptor`.
`InterceptorRegistration`
InterceptorRegistration.`excludePathPatterns(String... patterns)`
Add patterns for URLs the interceptor should be excluded from.
`InterceptorRegistration`
InterceptorRegistration.`excludePathPatterns(List<String> patterns)`
List-based variant of `excludePathPatterns(String...)`.
`InterceptorRegistration`
InterceptorRegistration.`order(int order)`
Specify an order position to be used.
`InterceptorRegistration`
InterceptorRegistration.`pathMatcher(org.springframework.util.PathMatcher pathMatcher)`
Configure the PathMatcher to use to match URL paths with against include and exclude patterns.