类 PluginInterceptorRegistry


  • public class PluginInterceptorRegistry
    extends Object
    插件拦截器添加者
    从以下版本开始:
    3.0.0
    版本:
    3.0.0
    作者:
    starBlues
    • 构造器详细资料

      • PluginInterceptorRegistry

        public PluginInterceptorRegistry​(String pluginRestApiPrefix)
    • 方法详细资料

      • addInterceptor

        public PluginInterceptorRegistration addInterceptor​(org.springframework.web.servlet.HandlerInterceptor interceptor,
                                                            PluginInterceptorRegistry.Type type)
        Adds the provided HandlerInterceptor.
        参数:
        interceptor - the interceptor to add
        type - type PluginInterceptorRegistry.Type
        返回:
        An InterceptorRegistration that 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 provided WebRequestInterceptor.
        参数:
        interceptor - the interceptor to add
        type - type PluginInterceptorRegistry.Type
        返回:
        An InterceptorRegistration that allows you optionally configure the registered interceptor further for example adding URL patterns it should apply to.
      • getInterceptors

        public List<Object> getInterceptors()
        Return all registered interceptors.
        返回:
        interceptors