Class DefaultJsonUriSchemaLoader
java.lang.Object
org.apache.camel.component.jsonvalidator.DefaultJsonUriSchemaLoader
- All Implemented Interfaces:
JsonUriSchemaLoader
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.networknt.schema.SchemaValidatorsConfig
protected com.networknt.schema.SpecVersion.VersionFlag
protected com.fasterxml.jackson.databind.ObjectMapper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.networknt.schema.JsonSchema
createSchema
(org.apache.camel.CamelContext camelContext, String schemaUri) Create a new Schema based on the schema input stream.
-
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 interfaceJsonUriSchemaLoader
- Parameters:
camelContext
- camel contextschemaUri
- the schema URI- Returns:
- a Schema to be used when validating incoming requests
- Throws:
Exception
-