接口的使用
cn.dev33.satoken.context.model.SaRequest
使用SaRequest的程序包
程序包
说明
-
cn.dev33.satoken.context中SaRequest的使用
修饰符和类型方法说明static SaRequestSaHolder.getRequest()获取当前请求的 Request 包装对象SaTokenContext.getRequest()获取当前请求的 Request 包装对象SaTokenContextDefaultImpl.getRequest()SaTokenContextForThreadLocal.getRequest()SaTokenContextForThreadLocalStorage.Box.getRequest()static SaRequestSaTokenContextForThreadLocalStorage.getRequest()在当前线程的 SaRequest 包装对象参数类型为SaRequest的cn.dev33.satoken.context中的方法修饰符和类型方法说明static voidSaTokenContextForThreadLocalStorage.setBox(SaRequest request, SaResponse response, SaStorage storage) 初始化当前线程的 [ Box 存储器 ]voidSaTokenContextForThreadLocalStorage.Box.setRequest(SaRequest request) 参数类型为SaRequest的cn.dev33.satoken.context中的构造器 -
cn.dev33.satoken.fun中SaRequest的使用
参数类型为SaRequest的cn.dev33.satoken.fun中的方法修饰符和类型方法说明voidSaRouteFunction.run(SaRequest request, SaResponse response, Object handler) 执行验证的方法 -
cn.dev33.satoken.fun.strategy中SaRequest的使用
参数类型为SaRequest的cn.dev33.satoken.fun.strategy中的方法修饰符和类型方法说明voidSaFirewallCheckFunction.execute(SaRequest req, SaResponse res, Object extArg) 执行函数voidSaFirewallCheckFailHandleFunction.run(FirewallCheckException e, SaRequest req, SaResponse res, Object extArg) 执行函数 -
cn.dev33.satoken.sign中SaRequest的使用
参数类型为SaRequest的cn.dev33.satoken.sign中的方法修饰符和类型方法说明voidSaSignTemplate.checkRequest(SaRequest request, String... paramNames) 校验:一个请求的 nonce、timestamp、sign 是否均为合法的,如果不合法,则抛出对应的异常static voidSaSignUtil.checkRequest(SaRequest request, String... paramNames) 校验:一个请求的 nonce、timestamp、sign 是否均为合法的,如果不合法,则抛出对应的异常booleanSaSignTemplate.isValidRequest(SaRequest request, String... paramNames) 判断:一个请求中的 nonce、timestamp、sign 是否均为合法的static booleanSaSignUtil.isValidRequest(SaRequest request, String... paramNames) 判断:一个请求中的 nonce、timestamp、sign 是否均为合法的SaSignTemplate.takeRequestParam(SaRequest request, String[] paramNames) 从请求中提取指定的参数 -
cn.dev33.satoken.strategy.hooks中SaRequest的使用
参数类型为SaRequest的cn.dev33.satoken.strategy.hooks中的方法修饰符和类型方法说明voidSaFirewallCheckHook.execute(SaRequest req, SaResponse res, Object extArg) 执行的方法voidSaFirewallCheckHookForBlackPath.execute(SaRequest req, SaResponse res, Object extArg) 执行的方法voidSaFirewallCheckHookForDirectoryTraversal.execute(SaRequest req, SaResponse res, Object extArg) 执行的方法voidSaFirewallCheckHookForHeader.execute(SaRequest req, SaResponse res, Object extArg) 执行的方法voidSaFirewallCheckHookForHost.execute(SaRequest req, SaResponse res, Object extArg) 执行的方法voidSaFirewallCheckHookForHttpMethod.execute(SaRequest req, SaResponse res, Object extArg) 执行的方法voidSaFirewallCheckHookForParameter.execute(SaRequest req, SaResponse res, Object extArg) 执行的方法voidSaFirewallCheckHookForPathBannedCharacter.execute(SaRequest req, SaResponse res, Object extArg) 执行的方法voidSaFirewallCheckHookForPathDangerCharacter.execute(SaRequest req, SaResponse res, Object extArg) 执行的方法voidSaFirewallCheckHookForWhitePath.execute(SaRequest req, SaResponse res, Object extArg) 执行的方法