类 RequestUtils
java.lang.Object
com.cdkjframework.util.network.RequestUtils
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static String
inputStreamToString
(InputStream stream) 请求字节流转换为字符串static <T> T
parameterToEntity
(jakarta.servlet.http.HttpServletRequest request, Class<T> clazz) 参数转换为实体
-
构造器详细资料
-
RequestUtils
public RequestUtils()
-
-
方法详细资料
-
inputStreamToString
请求字节流转换为字符串- 参数:
stream
- 流- 返回:
- 返回字符串
- 抛出:
IOException
-
parameterToEntity
public static <T> T parameterToEntity(jakarta.servlet.http.HttpServletRequest request, Class<T> clazz) 参数转换为实体- 类型参数:
T
- 类型- 参数:
request
- 请求clazz
- 实体类- 返回:
- 返回实体
-