接口的使用
cn.dev33.satoken.context.model.SaStorage
使用SaStorage的程序包
程序包
说明
因为不能确定最终运行的 web 容器属于标准 Servlet 模型还是非 Servlet 模型,特封装此包下的包装类进行对接。
-
cn.dev33.satoken.context中SaStorage的使用
修饰符和类型方法说明static SaStorageSaHolder.getStorage()获取当前请求的 Storage 包装对象default SaStorageSaTokenContext.getStorage()获取当前上下文的 Storage 包装对象SaTokenContextDefaultImpl.getStorage()static SaStorageSaTokenContextForThreadLocalStaff.getStorage()在当前线程的 SaStorage 存储器包装对象参数类型为SaStorage的cn.dev33.satoken.context中的方法修饰符和类型方法说明voidSaTokenContext.setContext(SaRequest req, SaResponse res, SaStorage stg) 初始化上下文voidSaTokenContextDefaultImpl.setContext(SaRequest req, SaResponse res, SaStorage stg) default voidSaTokenContextForReadOnly.setContext(SaRequest req, SaResponse res, SaStorage stg) voidSaTokenContextForThreadLocal.setContext(SaRequest req, SaResponse res, SaStorage stg) static voidSaTokenContextForThreadLocalStaff.setModelBox(SaRequest request, SaResponse response, SaStorage storage) 初始化当前线程的 [ Box 存储器 ] -
cn.dev33.satoken.context.mock中SaStorage的使用
-
cn.dev33.satoken.context.model中SaStorage的使用
参数类型为SaStorage的cn.dev33.satoken.context.model中的方法参数类型为SaStorage的cn.dev33.satoken.context.model中的构造器 -
cn.dev33.satoken.fun.strategy中SaStorage的使用
参数类型为SaStorage的cn.dev33.satoken.fun.strategy中的方法修饰符和类型方法说明voidSaCorsHandleFunction.execute(SaRequest req, SaResponse res, SaStorage sto) CORS 策略处理函数