Class DefaultJsonUriSchemaLoader

java.lang.Object
org.apache.camel.component.jsonvalidator.DefaultJsonUriSchemaLoader
All Implemented Interfaces:
JsonUriSchemaLoader

public class DefaultJsonUriSchemaLoader extends Object implements JsonUriSchemaLoader
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected com.networknt.schema.SchemaValidatorsConfig
     
    protected com.networknt.schema.SpecVersion.VersionFlag
     
    protected com.fasterxml.jackson.databind.ObjectMapper
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    com.networknt.schema.JsonSchema
    createSchema(org.apache.camel.CamelContext camelContext, String schemaUri)
    Create a new Schema based on the schema input stream.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • mapper

      protected com.fasterxml.jackson.databind.ObjectMapper mapper
    • config

      protected com.networknt.schema.SchemaValidatorsConfig config
    • defaultVersion

      protected com.networknt.schema.SpecVersion.VersionFlag defaultVersion
  • Constructor Details

    • DefaultJsonUriSchemaLoader

      public DefaultJsonUriSchemaLoader()
  • Method Details

    • createSchema

      public com.networknt.schema.JsonSchema createSchema(org.apache.camel.CamelContext camelContext, String schemaUri) throws Exception
      Description copied from interface: JsonUriSchemaLoader
      Create a new Schema based on the schema input stream.
      Specified by:
      createSchema in interface JsonUriSchemaLoader
      Parameters:
      camelContext - camel context
      schemaUri - the schema URI
      Returns:
      a Schema to be used when validating incoming requests
      Throws:
      Exception