mirror of
https://gitee.com/dromara/sa-token.git
synced 2025-12-26 22:25:39 +08:00
优化 sa-token-servlet 模块注释
This commit is contained in:
@@ -4,14 +4,14 @@ package cn.dev33.satoken.servlet.error;
|
||||
* 定义 sa-token-servlet 所有异常细分状态码
|
||||
*
|
||||
* @author click33
|
||||
* @since: 2022-10-30
|
||||
* @since 2022-10-30
|
||||
*/
|
||||
public interface SaServletErrorCode {
|
||||
|
||||
/** 转发失败 */
|
||||
public static final int CODE_20001 = 20001;
|
||||
int CODE_20001 = 20001;
|
||||
|
||||
/** 重定向失败 */
|
||||
public static final int CODE_20002 = 20002;
|
||||
int CODE_20002 = 20002;
|
||||
|
||||
}
|
||||
|
||||
@@ -15,9 +15,10 @@ import cn.dev33.satoken.servlet.error.SaServletErrorCode;
|
||||
import cn.dev33.satoken.util.SaFoxUtil;
|
||||
|
||||
/**
|
||||
* Request for Servlet
|
||||
* @author click33
|
||||
* 对 SaRequest 包装类的实现(Servlet 版)
|
||||
*
|
||||
* @author click33
|
||||
* @since <= 1.34.0
|
||||
*/
|
||||
public class SaRequestForServlet implements SaRequest {
|
||||
|
||||
|
||||
@@ -1,15 +1,16 @@
|
||||
package cn.dev33.satoken.servlet.model;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import cn.dev33.satoken.context.model.SaResponse;
|
||||
import cn.dev33.satoken.exception.SaTokenException;
|
||||
import cn.dev33.satoken.servlet.error.SaServletErrorCode;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
/**
|
||||
* Response for Servlet
|
||||
* @author click33
|
||||
* 对 SaResponse 包装类的实现(Servlet 版)
|
||||
*
|
||||
* @author click33
|
||||
* @since <= 1.34.0
|
||||
*/
|
||||
public class SaResponseForServlet implements SaResponse {
|
||||
|
||||
|
||||
@@ -1,13 +1,14 @@
|
||||
package cn.dev33.satoken.servlet.model;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
|
||||
import cn.dev33.satoken.context.model.SaStorage;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
|
||||
/**
|
||||
* Storage for Servlet
|
||||
* @author click33
|
||||
* 对 SaStorage 包装类的实现(Servlet 版)
|
||||
*
|
||||
* @author click33
|
||||
* @since <= 1.34.0
|
||||
*/
|
||||
public class SaStorageForServlet implements SaStorage {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user