Package 

Interface PoetHandlerInterceptor

  • All Implemented Interfaces:
    org.springframework.core.Ordered

    
    public interface PoetHandlerInterceptor
     implements Ordered
                        

    拦截器, 在PoetAnnexContext 的所有方法执行之前调用。 方便做鉴权、限流等 可自己定义运行时异常抛出, 用以终止整个流程

    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract boolean preHandle(PoetHandlerInterceptor.Mode mode, String name, @Nullable() String module) 在调用时会传入当前上下文试图做的操作, 和其操作对应的目标附件名字、模块
      • Methods inherited from class org.springframework.core.Ordered

        getOrder
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • preHandle

         abstract boolean preHandle(PoetHandlerInterceptor.Mode mode, String name, @Nullable() String module)

        在调用时会传入当前上下文试图做的操作, 和其操作对应的目标附件名字、模块

        Parameters:
        mode - 操作模式 访问/保存/删除
        name - 附件名 全局唯一.
        module - 模块名, 不一定会有