|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.web.servlet.config.annotation.InterceptorRegistration
public class InterceptorRegistration
Encapsulates a HandlerInterceptor
and an optional list of URL patterns.
Results in the creation of a MappedInterceptor
if URL patterns are provided.
Constructor Summary | |
---|---|
InterceptorRegistration(HandlerInterceptor interceptor)
Creates an InterceptorRegistration instance. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InterceptorRegistration(HandlerInterceptor interceptor)
InterceptorRegistration
instance.
Method Detail |
---|
public void addPathPatterns(String... pathPatterns)
protected Object getInterceptor()
MappedInterceptor
; otherwise HandlerInterceptor
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |