public interface ParameterValidationRule
HTTPRequestValidationHandler
Modifier and Type | Method and Description |
---|---|
boolean |
allowEmptyValue()
allowEmptyValue is used in query, header, cookie and form parameters.
|
String |
getName()
This function return the name of the parameter expected into parameter lists
|
boolean |
isOptional()
Return true if parameter is optional
|
ParameterTypeValidator |
parameterTypeValidator()
Return ParameterTypeValidator instance used inside this parameter validation rule
|
RequestParameter |
validateArrayParam(List<String> value)
This function will be called when there is a List
|
RequestParameter |
validateSingleParam(String value)
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.