new CustomValidator()
This interface is used to add custom synchronous functions inside validation process. You can add it in
Methods
validate(routingContext)
This function have to be synchronous. It doesn't return nothing if validation succedes, otherwise it
throws ValidationException.
Don't call routingContext.next() or routingContext.fail() from this function
Don't call routingContext.next() or routingContext.fail() from this function
Parameters:
| Name | Type | Description |
|---|---|---|
routingContext |
RoutingContext | the actual routing context |