Class MappedInterceptor

java.lang.Object
org.springframework.web.servlet.handler.MappedInterceptor
All Implemented Interfaces:
HandlerInterceptor

public final class MappedInterceptor extends Object implements HandlerInterceptor
Wraps a HandlerInterceptor and uses URL patterns to determine whether it applies to a given request.

Pattern matching can be done with a PathMatcher or with a parsed PathPattern. The syntax is largely the same with the latter being more tailored for web usage and more efficient. The choice is driven by the presence of a resolved String lookupPath or a parsed RequestPath which in turn depends on the HandlerMapping that matched the current request.

MappedInterceptor is supported by subclasses of AbstractHandlerMethodMapping which detect beans of type MappedInterceptor and also check if interceptors directly registered with it are of this type.

Since:
3.0
Author:
Keith Donald, Rossen Stoyanchev, Brian Clozel