Class 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
      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)  
      static org.swisspush.gateleen.core.validation.ValidationResult validateStatic​(io.vertx.core.buffer.Buffer dataToBeValidated, java.lang.String schemaAsString, org.slf4j.Logger log)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Validator

        public Validator​(org.swisspush.gateleen.core.storage.ResourceStorage storage,
                         java.lang.String schemaRoot)
    • 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)