A B C D E F G H J L M N O P R S T U V W
A
- ACCEPTED - 类 中的静态变量cn.sunxiansheng.tool.constant.HttpStatus
-
请求已经被接受
B
- BAD_METHOD - 类 中的静态变量cn.sunxiansheng.tool.constant.HttpStatus
-
不允许的http方法
- BAD_REQUEST - 类 中的静态变量cn.sunxiansheng.tool.constant.HttpStatus
-
参数列表错误(缺少,格式不匹配)
- build() - 类 中的方法cn.sunxiansheng.tool.response.ResultWrapper.Builder
-
- Builder() - 类 的构造器cn.sunxiansheng.tool.response.ResultWrapper.Builder
-
C
- channelEnumMap - 枚举 中的静态变量cn.sunxiansheng.tool.response.RespBeanEnum
-
将枚举转换为 Map(静态初始化),用于根据响应码快速查找对应的枚举值。
- cn.sunxiansheng.tool.config - 程序包 cn.sunxiansheng.tool.config
-
- cn.sunxiansheng.tool.constant - 程序包 cn.sunxiansheng.tool.constant
-
- cn.sunxiansheng.tool.response - 程序包 cn.sunxiansheng.tool.response
-
- cn.sunxiansheng.tool.utils - 程序包 cn.sunxiansheng.tool.utils
-
- code(int) - 类 中的方法cn.sunxiansheng.tool.response.ResultWrapper.Builder
-
设置响应代码
- CONFLICT - 类 中的静态变量cn.sunxiansheng.tool.constant.HttpStatus
-
资源冲突,或者资源被锁
- CREATED - 类 中的静态变量cn.sunxiansheng.tool.constant.HttpStatus
-
对象创建成功
D
- data(T) - 类 中的方法cn.sunxiansheng.tool.response.ResultWrapper.Builder
-
设置响应数据
- DateParsePatterns - cn.sunxiansheng.tool.constant中的接口
-
Description: 日期解析格式常量类
E
- ERROR - 类 中的静态变量cn.sunxiansheng.tool.constant.HttpStatus
-
系统内部错误
F
- fail() - 类 中的静态方法cn.sunxiansheng.tool.response.ResultWrapper
-
返回一个表示失败的响应对象。
- fail(String) - 类 中的静态方法cn.sunxiansheng.tool.response.ResultWrapper
-
返回一个表示失败的响应对象,并携带自定义消息。
- fail(int, String) - 类 中的静态方法cn.sunxiansheng.tool.response.ResultWrapper
-
返回一个表示失败的响应对象,并携带自定义代码和消息。
- fail(int, String, T) - 类 中的静态方法cn.sunxiansheng.tool.response.ResultWrapper
-
返回一个表示失败的响应对象,并携带自定义代码、消息和数据。
- fail(RespBeanEnum) - 类 中的静态方法cn.sunxiansheng.tool.response.ResultWrapper
-
- FORBIDDEN - 类 中的静态变量cn.sunxiansheng.tool.constant.HttpStatus
-
访问受限,授权过期
G
- getBody(HttpServletRequest) - 类 中的静态方法cn.sunxiansheng.tool.utils.RequestUtil
-
获取原始的 Body 数据
从 HTTP 请求中读取原始的 Body 内容,并返回为字符串。
- getByCode(int) - 枚举 中的静态方法cn.sunxiansheng.tool.response.RespBeanEnum
-
根据响应码获取对应的枚举。
- getHeader(HttpServletRequest, String) - 类 中的静态方法cn.sunxiansheng.tool.utils.RequestUtil
-
从请求头中获取指定的 header 值
- getHeaders(HttpServletRequest, String...) - 类 中的静态方法cn.sunxiansheng.tool.utils.RequestUtil
-
获取指定的多个请求头
H
- HttpStatus - cn.sunxiansheng.tool.constant中的类
-
返回状态码
- HttpStatus() - 类 的构造器cn.sunxiansheng.tool.constant.HttpStatus
-
J
- JsonUtil - cn.sunxiansheng.tool.utils中的类
-
Description: Json工具类
- JsonUtil() - 类 的构造器cn.sunxiansheng.tool.utils.JsonUtil
-
L
- logConfigSuccess() - 类 中的方法cn.sunxiansheng.tool.config.ToolAutoConfiguration
-
自动配置成功日志
M
- message(String) - 类 中的方法cn.sunxiansheng.tool.response.ResultWrapper.Builder
-
设置响应消息
- MOVED_PERM - 类 中的静态变量cn.sunxiansheng.tool.constant.HttpStatus
-
资源已被移除
N
- NO_CONTENT - 类 中的静态变量cn.sunxiansheng.tool.constant.HttpStatus
-
操作已经执行成功,但是没有返回数据
- NOT_FOUND - 类 中的静态变量cn.sunxiansheng.tool.constant.HttpStatus
-
资源,服务未找到
- NOT_IMPLEMENTED - 类 中的静态变量cn.sunxiansheng.tool.constant.HttpStatus
-
接口未实现
- NOT_MODIFIED - 类 中的静态变量cn.sunxiansheng.tool.constant.HttpStatus
-
资源没有被修改
O
- ok() - 类 中的静态方法cn.sunxiansheng.tool.response.ResultWrapper
-
返回一个表示成功的响应对象。
- ok(T) - 类 中的静态方法cn.sunxiansheng.tool.response.ResultWrapper
-
返回一个表示成功的响应对象,并携带数据。
- ok(T, String) - 类 中的静态方法cn.sunxiansheng.tool.response.ResultWrapper
-
返回一个表示成功的响应对象,并携带自定义消息。
P
- PARSE_PATTERNS - 接口 中的静态变量cn.sunxiansheng.tool.constant.DateParsePatterns
-
R
- RequestUtil - cn.sunxiansheng.tool.utils中的类
-
Description: 请求相关的工具类,提供了从请求头中获取信息、读取请求体内容等功能。
- RequestUtil() - 类 的构造器cn.sunxiansheng.tool.utils.RequestUtil
-
- RespBeanEnum - cn.sunxiansheng.tool.response中的枚举
-
Description: 响应状态码和信息的枚举类,用于统一管理响应状态码及其对应的消息。
- ResultWrapper<T> - cn.sunxiansheng.tool.response中的类
-
Description: 通用响应封装类,通过枚举来获取响应的 code 和 message。
- ResultWrapper.Builder<T> - cn.sunxiansheng.tool.response中的类
-
S
- SEE_OTHER - 类 中的静态变量cn.sunxiansheng.tool.constant.HttpStatus
-
重定向
- SUCCESS - 类 中的静态变量cn.sunxiansheng.tool.constant.HttpStatus
-
操作成功
- success(boolean) - 类 中的方法cn.sunxiansheng.tool.response.ResultWrapper.Builder
-
设置是否成功
- SunRaysServletResponse - cn.sunxiansheng.tool.response中的类
-
处理与 Servlet 相关的响应工具类,主要用于在过滤器中响应数据,避免被全局异常处理器捕获。
- SunRaysServletResponse() - 类 的构造器cn.sunxiansheng.tool.response.SunRaysServletResponse
-
T
- ToolAutoConfiguration - cn.sunxiansheng.tool.config中的类
-
Description: ToolAutoConfiguration的自动配置类
- ToolAutoConfiguration() - 类 的构造器cn.sunxiansheng.tool.config.ToolAutoConfiguration
-
- toPrettyJson(Object) - 类 中的静态方法cn.sunxiansheng.tool.utils.JsonUtil
-
格式化打印对象
- toPrettyJson(String) - 类 中的静态方法cn.sunxiansheng.tool.utils.JsonUtil
-
格式化打印 JSON 字符串
U
- UNAUTHORIZED - 类 中的静态变量cn.sunxiansheng.tool.constant.HttpStatus
-
未授权
- UNSUPPORTED_TYPE - 类 中的静态变量cn.sunxiansheng.tool.constant.HttpStatus
-
不支持的数据,媒体类型
V
- valueOf(String) - 枚举 中的静态方法cn.sunxiansheng.tool.response.RespBeanEnum
-
返回带有指定名称的该类型的枚举常量。
- values() - 枚举 中的静态方法cn.sunxiansheng.tool.response.RespBeanEnum
-
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
W
- WARN - 类 中的静态变量cn.sunxiansheng.tool.constant.HttpStatus
-
系统警告消息
- writeFail(HttpServletResponse, int, String) - 类 中的静态方法cn.sunxiansheng.tool.response.SunRaysServletResponse
-
返回一个表示失败的 JSON 响应,写入到 HttpServletResponse。
- writeResponse(HttpServletResponse, boolean, int, String, T) - 类 中的静态方法cn.sunxiansheng.tool.response.SunRaysServletResponse
-
将构造好的响应数据写入 HttpServletResponse 输出流,返回 JSON 格式的响应。
- writeSuccess(HttpServletResponse, int, String, T) - 类 中的静态方法cn.sunxiansheng.tool.response.SunRaysServletResponse
-
返回一个表示成功的 JSON 响应,写入到 HttpServletResponse。
A B C D E F G H J L M N O P R S T U V W
Copyright © 2025. All rights reserved.