@Deprecated public interface ParameterValidationRule
HTTPRequestValidationHandler
Modifier and Type | Method and Description |
---|---|
boolean |
allowEmptyValue()
Deprecated.
allowEmptyValue is used in query, header, cookie and form parameters.
|
String |
getName()
Deprecated.
This function return the name of the parameter expected into parameter lists
|
boolean |
isOptional()
Deprecated.
Return true if parameter is optional
|
ParameterTypeValidator |
parameterTypeValidator()
Deprecated.
Return ParameterTypeValidator instance used inside this parameter validation rule
|
RequestParameter |
validateArrayParam(List<String> value)
Deprecated.
This function will be called when there is a List
|
RequestParameter |
validateSingleParam(String value)
Deprecated.
This function will be called when there is only a string as parameter.
|
String getName()
RequestParameter validateSingleParam(String value) throws ValidationException
value
- list of values that will be validatedValidationException
RequestParameter validateArrayParam(List<String> value) throws ValidationException
value
- list of values that will be validatedValidationException
boolean isOptional()
ParameterTypeValidator parameterTypeValidator()
boolean allowEmptyValue()
Copyright © 2023 Eclipse. All rights reserved.