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