public class InterceptorRegistration
extends java.lang.Object
HandlerInterceptor
and an optional list of URL patterns.
Results in the creation of a MappedInterceptor
if URL patterns are provided.Modifier and Type | Field and Description |
---|---|
private HandlerInterceptor |
interceptor |
private java.util.List<java.lang.String> |
pathPatterns |
Constructor and Description |
---|
InterceptorRegistration(HandlerInterceptor interceptor)
Creates an
InterceptorRegistration instance. |
Modifier and Type | Method and Description |
---|---|
void |
addPathPatterns(java.lang.String... pathPatterns)
Adds one or more URL patterns to which the registered interceptor should apply to.
|
protected java.lang.Object |
getInterceptor()
Returns the underlying interceptor.
|
private final HandlerInterceptor interceptor
private final java.util.List<java.lang.String> pathPatterns
public InterceptorRegistration(HandlerInterceptor interceptor)
InterceptorRegistration
instance.public void addPathPatterns(java.lang.String... pathPatterns)
protected java.lang.Object getInterceptor()
MappedInterceptor
; otherwise HandlerInterceptor
.