public class InterceptorRegistration extends Object
HandlerInterceptor and an optional list of URL patterns.
Results in the creation of a MappedInterceptor if URL patterns are provided.| Constructor and Description |
|---|
InterceptorRegistration(HandlerInterceptor interceptor)
Creates an
InterceptorRegistration instance. |
| Modifier and Type | Method and Description |
|---|---|
void |
addPathPatterns(String... pathPatterns)
Adds one or more URL patterns to which the registered interceptor should apply to.
|
protected Object |
getInterceptor()
Returns the underlying interceptor.
|
public InterceptorRegistration(HandlerInterceptor interceptor)
InterceptorRegistration instance.public void addPathPatterns(String... pathPatterns)
protected Object getInterceptor()
MappedInterceptor; otherwise HandlerInterceptor.Copyright © 2013. All Rights Reserved.