open class ParameterValidationRule
This function is an inner wrapper for ParameterTypeValidator inside ValidationHandler parameter maps. Don't instantiate this class, if you want to add custom ParameterTypeValidator to a parameter use functions in io.vertx.rxjava.ext.web.api.validation.HTTPRequestValidationHandler NOTE: This class has been automatically generated from the io.vertx.ext.web.api.validation.ParameterValidationRule non RX-ified interface using Vert.x codegen.
ParameterValidationRule(delegate: ParameterValidationRule) |
static val __TYPE_ARG: TypeArg<ParameterValidationRule> |
open fun allowEmptyValue(): Boolean
allowEmptyValue is used in query, header, cookie and form parameters. This is its behaviour:
|
|
open fun equals(other: Any?): Boolean |
|
open fun getDelegate(): ParameterValidationRule |
|
open fun getName(): String
This function return the name of the parameter expected into parameter lists |
|
open fun hashCode(): Int |
|
open fun isOptional(): Boolean
Return true if parameter is optional |
|
open static fun newInstance(arg: ParameterValidationRule): ParameterValidationRule |
|
open fun parameterTypeValidator(): ParameterTypeValidator
Return ParameterTypeValidator instance used inside this parameter validation rule |
|
open fun toString(): String |
|
open fun validateArrayParam(value: MutableList<String>): RequestParameter
This function will be called when there is a List that need to be validated. It must check if array is expected or not. It will throw a ValidationError in an error during validation occurs |
|
open fun validateSingleParam(value: String): RequestParameter
This function will be called when there is only a string as parameter. It will throw a ValidationError in an error during validation occurs |