类 PluginInterceptorRegistration
- java.lang.Object
-
- com.gitee.starblues.bootstrap.processor.interceptor.PluginInterceptorRegistration
-
public class PluginInterceptorRegistration extends Object
插件拦截器注册的信息- 从以下版本开始:
- 3.0.0
- 版本:
- 3.0.0
- 作者:
- starBlues
-
-
构造器概要
构造器 构造器 说明 PluginInterceptorRegistration(org.springframework.web.servlet.HandlerInterceptor interceptor, PluginInterceptorRegistry.Type type, String pluginRestApiPrefix)Create anInterceptorRegistrationinstance.
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 PluginInterceptorRegistrationaddPathPatterns(String... patterns)Add URL patterns to which the registered interceptor should apply to.PluginInterceptorRegistrationexcludePathPatterns(String... patterns)Add URL patterns to which the registered interceptor should not apply to.protected ObjectgetInterceptor()Build the underlying interceptor.protected intgetOrder()Return the order position to be used.PluginInterceptorRegistrationorder(int order)Specify an order position to be used.PluginInterceptorRegistrationpathMatcher(org.springframework.util.PathMatcher pathMatcher)A PathMatcher implementation to use with this interceptor.
-
-
-
构造器详细资料
-
PluginInterceptorRegistration
public PluginInterceptorRegistration(org.springframework.web.servlet.HandlerInterceptor interceptor, PluginInterceptorRegistry.Type type, String pluginRestApiPrefix)Create anInterceptorRegistrationinstance.- 参数:
interceptor- 拦截器type- 类型pluginRestApiPrefix- 接口前缀
-
-
方法详细资料
-
addPathPatterns
public PluginInterceptorRegistration addPathPatterns(String... patterns)
Add URL patterns to which the registered interceptor should apply to.- 参数:
patterns- patterns- 返回:
- PluginInterceptorRegistration
-
excludePathPatterns
public PluginInterceptorRegistration excludePathPatterns(String... patterns)
Add URL patterns to which the registered interceptor should not apply to.- 参数:
patterns- patterns- 返回:
- PluginInterceptorRegistration
-
pathMatcher
public PluginInterceptorRegistration pathMatcher(org.springframework.util.PathMatcher pathMatcher)
A PathMatcher implementation to use with this interceptor. This is an optional, advanced property required only if using custom PathMatcher implementations that support mapping metadata other than the Ant path patterns supported by default.- 参数:
pathMatcher- pathMatcher- 返回:
- PluginInterceptorRegistration
-
order
public PluginInterceptorRegistration order(int order)
Specify an order position to be used. Default is 0.- 参数:
order- order- 返回:
- PluginInterceptorRegistration
- 从以下版本开始:
- 5.0
-
getOrder
protected int getOrder()
Return the order position to be used.- 返回:
- int
- 从以下版本开始:
- 5.0
-
getInterceptor
protected Object getInterceptor()
Build the underlying interceptor. If URL patterns are provided, the returned type isMappedInterceptor; otherwiseHandlerInterceptor.- 返回:
- object 为
MappedInterceptororHandlerInterceptor
-
-