Class Validator
- java.lang.Object
-
- org.swisspush.gateleen.validation.Validator
-
public class Validator extends Object
- Author:
- https://github.com/lbovet [Laurent Bovet]
-
-
Constructor Summary
Constructors Constructor Description Validator(ResourceStorage storage, String schemaRoot, ValidationSchemaProvider schemaProvider)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidvalidate(io.vertx.core.http.HttpServerRequest req, String type, io.vertx.core.buffer.Buffer jsonBuffer, io.vertx.core.Handler<ValidationResult> callback)voidvalidate(io.vertx.core.http.HttpServerRequest req, String type, io.vertx.core.buffer.Buffer jsonBuffer, SchemaLocation schemaLocation, io.vertx.core.Handler<ValidationResult> callback)static ValidationResultvalidateStatic(io.vertx.core.buffer.Buffer dataToBeValidated, String schemaAsString, org.slf4j.Logger log)io.vertx.core.Future<ValidationResult>validateWithSchemaLocation(SchemaLocation schemaLocation, io.vertx.core.buffer.Buffer jsonBuffer, org.slf4j.Logger log)
-
-
-
Constructor Detail
-
Validator
public Validator(ResourceStorage storage, String schemaRoot, ValidationSchemaProvider schemaProvider)
-
-
Method Detail
-
validateWithSchemaLocation
public io.vertx.core.Future<ValidationResult> validateWithSchemaLocation(SchemaLocation schemaLocation, io.vertx.core.buffer.Buffer jsonBuffer, org.slf4j.Logger log)
-
validate
public void validate(io.vertx.core.http.HttpServerRequest req, String type, io.vertx.core.buffer.Buffer jsonBuffer, SchemaLocation schemaLocation, io.vertx.core.Handler<ValidationResult> callback)
-
validate
public void validate(io.vertx.core.http.HttpServerRequest req, String type, io.vertx.core.buffer.Buffer jsonBuffer, io.vertx.core.Handler<ValidationResult> callback)
-
validateStatic
public static ValidationResult validateStatic(io.vertx.core.buffer.Buffer dataToBeValidated, String schemaAsString, org.slf4j.Logger log)
-
-