类 SaTokenContextForSpringInJakartaServlet
java.lang.Object
cn.dev33.satoken.spring.SaTokenContextForSpringInJakartaServlet
- 所有已实现的接口:
cn.dev33.satoken.context.SaTokenContext
public class SaTokenContextForSpringInJakartaServlet
extends Object
implements cn.dev33.satoken.context.SaTokenContext
Sa-Token 上下文处理器 [ SpringBoot3 Jakarta Servlet 版 ],在 SpringBoot3 中使用 Sa-Token 时,必须注入此实现类,否则会出现上下文无效异常
- 从以下版本开始:
- 1.34.0
- 作者:
- click33
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明cn.dev33.satoken.context.model.SaRequest获取当前请求的 Request 包装对象cn.dev33.satoken.context.model.SaResponse获取当前请求的 Response 包装对象cn.dev33.satoken.context.model.SaStorage获取当前请求的 Storage 包装对象booleanisValid()判断:在本次请求中,此上下文是否可用。boolean判断:指定路由匹配符是否可以匹配成功指定路径
-
构造器详细资料
-
SaTokenContextForSpringInJakartaServlet
public SaTokenContextForSpringInJakartaServlet()
-
-
方法详细资料
-
getRequest
public cn.dev33.satoken.context.model.SaRequest getRequest()获取当前请求的 Request 包装对象- 指定者:
getRequest在接口中cn.dev33.satoken.context.SaTokenContext
-
getResponse
public cn.dev33.satoken.context.model.SaResponse getResponse()获取当前请求的 Response 包装对象- 指定者:
getResponse在接口中cn.dev33.satoken.context.SaTokenContext
-
getStorage
public cn.dev33.satoken.context.model.SaStorage getStorage()获取当前请求的 Storage 包装对象- 指定者:
getStorage在接口中cn.dev33.satoken.context.SaTokenContext
-
matchPath
判断:指定路由匹配符是否可以匹配成功指定路径- 指定者:
matchPath在接口中cn.dev33.satoken.context.SaTokenContext
-
isValid
public boolean isValid()判断:在本次请求中,此上下文是否可用。- 指定者:
isValid在接口中cn.dev33.satoken.context.SaTokenContext
-