Class TrackingEventJsonValidator


  • public class TrackingEventJsonValidator
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      TrackingEventJsonValidator​(com.fasterxml.jackson.databind.ObjectMapper mapper, org.springframework.core.io.Resource eventTrackingSchema)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static void safeClose​(java.io.InputStream inputStream)  
      com.github.fge.jsonschema.core.report.ProcessingReport validate​(java.lang.String rawTrackingEvent)  
      • Methods inherited from class java.lang.Object

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

      • TrackingEventJsonValidator

        public TrackingEventJsonValidator​(com.fasterxml.jackson.databind.ObjectMapper mapper,
                                          org.springframework.core.io.Resource eventTrackingSchema)
                                   throws com.github.fge.jsonschema.core.exceptions.ProcessingException,
                                          java.io.IOException
        Throws:
        com.github.fge.jsonschema.core.exceptions.ProcessingException
        java.io.IOException
    • Method Detail

      • safeClose

        public static void safeClose​(java.io.InputStream inputStream)
      • validate

        public com.github.fge.jsonschema.core.report.ProcessingReport validate​(java.lang.String rawTrackingEvent)
                                                                        throws java.io.IOException,
                                                                               com.github.fge.jsonschema.core.exceptions.ProcessingException
        Throws:
        java.io.IOException
        com.github.fge.jsonschema.core.exceptions.ProcessingException