mirror of
https://gitee.com/dromara/sa-token.git
synced 2025-08-24 16:18:38 +08:00
简化修饰符
This commit is contained in:
parent
ff77c210df
commit
5b5cd5181e
@ -20,7 +20,7 @@ public interface SaTokenContext {
|
|||||||
*
|
*
|
||||||
* @return /
|
* @return /
|
||||||
*/
|
*/
|
||||||
public SaRequest getRequest();
|
SaRequest getRequest();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取当前请求的 Response 包装对象
|
* 获取当前请求的 Response 包装对象
|
||||||
@ -28,7 +28,7 @@ public interface SaTokenContext {
|
|||||||
*
|
*
|
||||||
* @return /
|
* @return /
|
||||||
*/
|
*/
|
||||||
public SaResponse getResponse();
|
SaResponse getResponse();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取当前请求的 Storage 包装对象
|
* 获取当前请求的 Storage 包装对象
|
||||||
@ -36,7 +36,7 @@ public interface SaTokenContext {
|
|||||||
*
|
*
|
||||||
* @return /
|
* @return /
|
||||||
*/
|
*/
|
||||||
public SaStorage getStorage();
|
SaStorage getStorage();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 判断:指定路由匹配符是否可以匹配成功指定路径
|
* 判断:指定路由匹配符是否可以匹配成功指定路径
|
||||||
@ -50,7 +50,7 @@ public interface SaTokenContext {
|
|||||||
* @param path 需要匹配的路径
|
* @param path 需要匹配的路径
|
||||||
* @return /
|
* @return /
|
||||||
*/
|
*/
|
||||||
public boolean matchPath(String pattern, String path);
|
boolean matchPath(String pattern, String path);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 判断:在本次请求中,此上下文是否可用。
|
* 判断:在本次请求中,此上下文是否可用。
|
||||||
@ -58,7 +58,7 @@ public interface SaTokenContext {
|
|||||||
*
|
*
|
||||||
* @return /
|
* @return /
|
||||||
*/
|
*/
|
||||||
public default boolean isValid() {
|
default boolean isValid() {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user