类 RequestParameterCheckUtil

java.lang.Object
com.sh.wf.module.util.RequestParameterCheckUtil

public class RequestParameterCheckUtil extends Object

Description: request中的参数检查

Title:首亨软件 - TSS/CRM等

从以下版本开始:
2016年9月9日
  • 构造器详细资料

    • RequestParameterCheckUtil

      public RequestParameterCheckUtil()
  • 方法详细资料

    • checkBoolean

      public static String checkBoolean(String str)
    • checkBoolean

      public static String checkBoolean(String str, String defaultValue)
      检查是否bool类型数据
      参数:
      str - String
      defaultValue - String
      返回:
      String
    • checkHtmlParam

      public static String checkHtmlParam(String str)
      转换html代码,防止在页面注入代码,将HTML特殊字符进行转换
      参数:
      str - String
      返回:
      String
    • checkMaxLengthStr

      public static String checkMaxLengthStr(String str, int len)
      检查最大长度字符串值
      参数:
      str - String
      len - int
      返回:
      String
    • checkNumberParam

      public static String checkNumberParam(String str)
      检查是否数字
      参数:
      str - String
      返回:
      String