类 PluginInterceptorRegistration


  • public class PluginInterceptorRegistration
    extends Object
    插件拦截器注册的信息
    版本:
    3.0.0
    作者:
    starBlues
    • 构造器详细资料

      • PluginInterceptorRegistration

        public PluginInterceptorRegistration​(org.springframework.web.servlet.HandlerInterceptor interceptor,
                                             PluginInterceptorRegistry.Type type,
                                             String pluginRestApiPrefix)
        Create an InterceptorRegistration instance.
        参数:
        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 is MappedInterceptor; otherwise HandlerInterceptor.
        返回:
        object 为 MappedInterceptor or HandlerInterceptor