类 RequestCheckUtils
- java.lang.Object
-
- com.dss.sdk.utils.valida.RequestCheckUtils
-
public class RequestCheckUtils extends Object
- 作者:
- Fadada
-
-
字段概要
字段 修饰符和类型 字段 说明 static StringERROR_CODE_ARGUMENTS_INVALIDstatic StringERROR_CODE_ARGUMENTS_MISSING
-
构造器概要
构造器 构造器 说明 RequestCheckUtils()
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static voidcheckChooseOneNotEmpty(FileItem file, String fieldName1, String value2, String fieldName2)static voidcheckMaxLength(FileItem fileItem, int maxLength, String fieldName)static voidcheckMaxLength(String value, int maxLength, String fieldName)static voidcheckMaxListSize(String value, int maxSize, String fieldName)static voidcheckMaxListSize(List<String> list, int maxSize, String fieldName)static voidcheckMaxValue(Long value, long maxValue, String fieldName)static voidcheckMinValue(Long value, long minValue, String fieldName)static voidcheckNotEmpty(Object value, String fieldName)static voidcheckTwoNotEmpty(FileItem file, String fieldName1, String value2, String fieldName2)
-
-
-
方法详细资料
-
checkNotEmpty
public static void checkNotEmpty(Object value, String fieldName) throws ApiRuleException
- 抛出:
ApiRuleException
-
checkTwoNotEmpty
public static void checkTwoNotEmpty(FileItem file, String fieldName1, String value2, String fieldName2) throws ApiRuleException
- 抛出:
ApiRuleException
-
checkChooseOneNotEmpty
public static void checkChooseOneNotEmpty(FileItem file, String fieldName1, String value2, String fieldName2) throws ApiRuleException
- 抛出:
ApiRuleException
-
checkMaxLength
public static void checkMaxLength(String value, int maxLength, String fieldName) throws ApiRuleException
- 抛出:
ApiRuleException
-
checkMaxLength
public static void checkMaxLength(FileItem fileItem, int maxLength, String fieldName) throws ApiRuleException
- 抛出:
ApiRuleException
-
checkMaxListSize
public static void checkMaxListSize(String value, int maxSize, String fieldName) throws ApiRuleException
- 抛出:
ApiRuleException
-
checkMaxListSize
public static void checkMaxListSize(List<String> list, int maxSize, String fieldName) throws ApiRuleException
- 抛出:
ApiRuleException
-
checkMaxValue
public static void checkMaxValue(Long value, long maxValue, String fieldName) throws ApiRuleException
- 抛出:
ApiRuleException
-
checkMinValue
public static void checkMinValue(Long value, long minValue, String fieldName) throws ApiRuleException
- 抛出:
ApiRuleException
-
-