类 RequestParameterCheckUtil
java.lang.Object
com.sh.wf.module.util.RequestParameterCheckUtil
Description: request中的参数检查
Title:首亨软件 - TSS/CRM等
- 从以下版本开始:
- 2016年9月9日
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static StringcheckBoolean(String str) static StringcheckBoolean(String str, String defaultValue) 检查是否bool类型数据static StringcheckHtmlParam(String str) 转换html代码,防止在页面注入代码,将HTML特殊字符进行转换static StringcheckMaxLengthStr(String str, int len) 检查最大长度字符串值static StringcheckNumberParam(String str) 检查是否数字
-
构造器详细资料
-
RequestParameterCheckUtil
public RequestParameterCheckUtil()
-
-
方法详细资料
-
checkBoolean
-
checkBoolean
检查是否bool类型数据- 参数:
str- StringdefaultValue- String- 返回:
- String
-
checkHtmlParam
转换html代码,防止在页面注入代码,将HTML特殊字符进行转换- 参数:
str- String- 返回:
- String
-
checkMaxLengthStr
检查最大长度字符串值- 参数:
str- Stringlen- int- 返回:
- String
-
checkNumberParam
检查是否数字- 参数:
str- String- 返回:
- String
-