io.vertx.ext.web.api.validation.CustomValidator Maven / Gradle / Ivy
package io.vertx.ext.web.api.validation;
import io.vertx.codegen.annotations.VertxGen;
import io.vertx.ext.web.RoutingContext;
/**
* This interface is used to add custom synchronous functions inside validation process. You can add it in
* {@link HTTPRequestValidationHandler}.
*
* @author Francesco Guardiani @slinkydeveloper
* @deprecated You should use the new module vertx-web-openapi
*/
@VertxGen
@Deprecated
public interface CustomValidator {
/**
* 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
*
* @param routingContext the actual routing context
* @throws ValidationException
*/
void validate(RoutingContext routingContext) throws ValidationException;
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy