public class RequestCheckUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ERROR_CODE_ARGUMENTS_INVALID |
static String |
ERROR_CODE_ARGUMENTS_MISSING |
| Constructor and Description |
|---|
RequestCheckUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
checkMaxLength(FileItem fileItem,
int maxLength,
String fieldName) |
static void |
checkMaxLength(String value,
int maxLength,
String fieldName) |
static void |
checkMaxListSize(List<String> list,
int maxSize,
String fieldName) |
static void |
checkMaxListSize(String value,
int maxSize,
String fieldName) |
static void |
checkMaxValue(Long value,
long maxValue,
String fieldName) |
static void |
checkMinValue(Long value,
long minValue,
String fieldName) |
static void |
checkNotEmpty(Object value,
String fieldName) |
static void |
checkObjectMaxListSize(String value,
int maxSize,
String fieldName) |
public static final String ERROR_CODE_ARGUMENTS_MISSING
public static final String ERROR_CODE_ARGUMENTS_INVALID
public static void checkNotEmpty(Object value, String fieldName) throws ApiRuleException
ApiRuleExceptionpublic static void checkMaxLength(String value, int maxLength, String fieldName) throws ApiRuleException
ApiRuleExceptionpublic static void checkMaxLength(FileItem fileItem, int maxLength, String fieldName) throws ApiRuleException
ApiRuleExceptionpublic static void checkMaxListSize(String value, int maxSize, String fieldName) throws ApiRuleException
ApiRuleExceptionpublic static void checkMaxListSize(List<String> list, int maxSize, String fieldName) throws ApiRuleException
ApiRuleExceptionpublic static void checkObjectMaxListSize(String value, int maxSize, String fieldName) throws ApiRuleException
ApiRuleExceptionpublic static void checkMaxValue(Long value, long maxValue, String fieldName) throws ApiRuleException
ApiRuleExceptionpublic static void checkMinValue(Long value, long minValue, String fieldName) throws ApiRuleException
ApiRuleExceptionCopyright © 2021. All rights reserved.