public class RequestCheckUtils extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
ERROR_CODE_ARGUMENTS_INVALID |
static String |
ERROR_CODE_ARGUMENTS_MISS |
| 构造器和说明 |
|---|
RequestCheckUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
checkMaxLength(FileItem fileItem,
int maxLength,
String fieldName) |
static void |
checkMaxLength(String value,
int maxLength,
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) |
public static void checkNotEmpty(Object value, String fieldName) throws AlipayApiException
public static void checkMaxLength(String value, int maxLength, String fieldName) throws AlipayApiException
public static void checkMaxLength(FileItem fileItem, int maxLength, String fieldName) throws AlipayApiException
public static void checkMaxListSize(String value, int maxSize, String fieldName) throws AlipayApiException
public static void checkMaxValue(Long value, long maxValue, String fieldName) throws AlipayApiException
public static void checkMinValue(Long value, long minValue, String fieldName) throws AlipayApiException
Copyright © 2023. All rights reserved.