public class SaContextForSolon extends Object implements cn.dev33.satoken.context.SaTokenContext
| 构造器和说明 |
|---|
SaContextForSolon() |
| 限定符和类型 | 方法和说明 |
|---|---|
cn.dev33.satoken.context.model.SaRequest |
getRequest()
获取当前请求的Request对象
|
cn.dev33.satoken.context.model.SaResponse |
getResponse()
获取当前请求的Response对象
|
cn.dev33.satoken.context.model.SaStorage |
getStorage()
获取当前请求的 [存储器] 对象
|
boolean |
isValid()
此上下文是否有效
|
boolean |
matchPath(String pattern,
String path)
校验指定路由匹配符是否可以匹配成功指定路径
|
public cn.dev33.satoken.context.model.SaRequest getRequest()
getRequest 在接口中 cn.dev33.satoken.context.SaTokenContextpublic cn.dev33.satoken.context.model.SaResponse getResponse()
getResponse 在接口中 cn.dev33.satoken.context.SaTokenContextpublic cn.dev33.satoken.context.model.SaStorage getStorage()
getStorage 在接口中 cn.dev33.satoken.context.SaTokenContextpublic boolean matchPath(String pattern, String path)
matchPath 在接口中 cn.dev33.satoken.context.SaTokenContextpublic boolean isValid()
isValid 在接口中 cn.dev33.satoken.context.SaTokenContextCopyright © 2022. All rights reserved.