vertx / io.vertx.reactivex.ext.web.api.validation / CustomValidator

CustomValidator

open class CustomValidator

This interface is used to add custom synchronous functions inside validation process. You can add it in io.vertx.reactivex.ext.web.api.validation.HTTPRequestValidationHandler. NOTE: This class has been automatically generated from the io.vertx.ext.web.api.validation.CustomValidator non RX-ified interface using Vert.x codegen.

Constructors

<init>

CustomValidator(delegate: CustomValidator)

Properties

__TYPE_ARG

static val __TYPE_ARG: TypeArg<CustomValidator>

Functions

equals

open fun equals(other: Any?): Boolean

getDelegate

open fun getDelegate(): CustomValidator

hashCode

open fun hashCode(): Int

newInstance

open static fun newInstance(arg: CustomValidator): CustomValidator

toString

open fun toString(): String

validate

open fun validate(routingContext: RoutingContext): Unit

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