类 PluginInterceptorRegistry
- java.lang.Object
-
- com.gitee.starblues.bootstrap.processor.interceptor.PluginInterceptorRegistry
-
public class PluginInterceptorRegistry extends Object
插件拦截器添加者- 版本:
- 3.0.0
- 作者:
- starBlues
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classPluginInterceptorRegistry.Type
-
构造器概要
构造器 构造器 说明 PluginInterceptorRegistry(String pluginRestApiPrefix)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 PluginInterceptorRegistrationaddInterceptor(org.springframework.web.servlet.HandlerInterceptor interceptor, PluginInterceptorRegistry.Type type)Adds the providedHandlerInterceptor.PluginInterceptorRegistrationaddWebRequestInterceptor(org.springframework.web.context.request.WebRequestInterceptor interceptor, PluginInterceptorRegistry.Type type)Adds the providedWebRequestInterceptor.List<Object>getInterceptors()Return all registered interceptors.
-
-
-
构造器详细资料
-
PluginInterceptorRegistry
public PluginInterceptorRegistry(String pluginRestApiPrefix)
-
-
方法详细资料
-
addInterceptor
public PluginInterceptorRegistration addInterceptor(org.springframework.web.servlet.HandlerInterceptor interceptor, PluginInterceptorRegistry.Type type)
Adds the providedHandlerInterceptor.- 参数:
interceptor- the interceptor to addtype- typePluginInterceptorRegistry.Type- 返回:
- An
InterceptorRegistrationthat allows you optionally configure the registered interceptor further for example adding URL patterns it should apply to.
-
addWebRequestInterceptor
public PluginInterceptorRegistration addWebRequestInterceptor(org.springframework.web.context.request.WebRequestInterceptor interceptor, PluginInterceptorRegistry.Type type)
Adds the providedWebRequestInterceptor.- 参数:
interceptor- the interceptor to addtype- typePluginInterceptorRegistry.Type- 返回:
- An
InterceptorRegistrationthat allows you optionally configure the registered interceptor further for example adding URL patterns it should apply to.
-
-