|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.web.servlet.config.annotation.InterceptorConfigurer
public class InterceptorConfigurer
Helps with configuring an ordered set of Spring MVC interceptors of type HandlerInterceptor or
WebRequestInterceptor. Registered interceptors will generally be detected by all HandlerMapping
instances in a Spring MVC web application context. Interceptors can be added with a set of path patterns to
which they should apply.
| Constructor Summary | |
|---|---|
InterceptorConfigurer()
|
|
| Method Summary | |
|---|---|
void |
addInterceptor(HandlerInterceptor interceptor)
Add a HandlerInterceptor that should apply to any request. |
void |
addInterceptor(WebRequestInterceptor interceptor)
Add a WebRequestInterceptor that should apply to any request. |
void |
addInterceptors(HandlerInterceptor... interceptors)
Add HandlerInterceptors that should apply to any request. |
void |
addInterceptors(WebRequestInterceptor... interceptors)
Add WebRequestInterceptors that should apply to any request. |
protected List<MappedInterceptor> |
getInterceptors()
Returns all registered interceptors. |
void |
mapInterceptor(String[] pathPatterns,
HandlerInterceptor interceptor)
Add a HandlerInterceptor with a set of URL path patterns it should apply to. |
void |
mapInterceptor(String[] pathPatterns,
WebRequestInterceptor interceptors)
Add a WebRequestInterceptor with a set of URL path patterns it should apply to. |
void |
mapInterceptors(String[] pathPatterns,
HandlerInterceptor... interceptors)
Add HandlerInterceptors with a set of URL path patterns they should apply to. |
void |
mapInterceptors(String[] pathPatterns,
WebRequestInterceptor... interceptors)
Add WebRequestInterceptors with a set of URL path patterns they should apply to. |
protected void |
register(String[] pathPatterns,
HandlerInterceptor... interceptors)
Stores the given set of HandlerInterceptors and path patterns internally. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InterceptorConfigurer()
| Method Detail |
|---|
public void addInterceptor(HandlerInterceptor interceptor)
HandlerInterceptor that should apply to any request.
public void addInterceptor(WebRequestInterceptor interceptor)
WebRequestInterceptor that should apply to any request.
public void addInterceptors(HandlerInterceptor... interceptors)
HandlerInterceptors that should apply to any request.
public void addInterceptors(WebRequestInterceptor... interceptors)
WebRequestInterceptors that should apply to any request.
public void mapInterceptor(String[] pathPatterns,
HandlerInterceptor interceptor)
HandlerInterceptor with a set of URL path patterns it should apply to.
public void mapInterceptor(String[] pathPatterns,
WebRequestInterceptor interceptors)
WebRequestInterceptor with a set of URL path patterns it should apply to.
public void mapInterceptors(String[] pathPatterns,
HandlerInterceptor... interceptors)
HandlerInterceptors with a set of URL path patterns they should apply to.
public void mapInterceptors(String[] pathPatterns,
WebRequestInterceptor... interceptors)
WebRequestInterceptors with a set of URL path patterns they should apply to.
protected void register(String[] pathPatterns,
HandlerInterceptor... interceptors)
HandlerInterceptors and path patterns internally.
pathPatterns - path patterns or nullinterceptors - one or more interceptors to be storedprotected List<MappedInterceptor> getInterceptors()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||