类 InterceptorRegistration
java.lang.Object
cn.taketoday.web.config.InterceptorRegistration
Assists with the creation of a
MappedInterceptor.- 从以下版本开始:
- 4.0
- 作者:
- Rossen Stoyanchev, Keith Donald, TODAY 2021/8/30 21:38
-
字段概要
字段 -
构造器概要
构造器构造器说明InterceptorRegistration(HandlerInterceptor interceptor) Create anInterceptorRegistrationinstance. -
方法概要
修饰符和类型方法说明addPathPatterns(String... patterns) Add patterns for URLs the interceptor should be included in.addPathPatterns(List<String> patterns) List-based variant ofaddPathPatterns(String...).excludePathPatterns(String... patterns) Add patterns for URLs the interceptor should be excluded from.excludePathPatterns(List<String> patterns) List-based variant ofexcludePathPatterns(String...).protected ObjectBuild the underlying interceptor.protected intgetOrder()Return the order position to be used.order(int order) Specify an order position to be used.
-
字段详细资料
-
interceptor
-
includePatterns
-
excludePatterns
-
order
private int order
-
-
构造器详细资料
-
InterceptorRegistration
Create anInterceptorRegistrationinstance.
-
-
方法详细资料
-
addPathPatterns
Add patterns for URLs the interceptor should be included in.For pattern syntax see
PathPatternThe syntax is largely the same withPathPatternmore tailored for web usage and more efficient. -
addPathPatterns
List-based variant ofaddPathPatterns(String...). -
excludePathPatterns
Add patterns for URLs the interceptor should be excluded from.For pattern syntax see
PathPatternThe syntax is largely the same withPathPatternmore tailored for web usage and more efficient. -
excludePathPatterns
List-based variant ofexcludePathPatterns(String...). -
order
Specify an order position to be used. Default is 0. -
getOrder
protected int getOrder()Return the order position to be used. -
getInterceptor
Build the underlying interceptor. If URL patterns are provided, the returned type isMappedInterceptor; otherwiseHandlerInterceptor.
-