Class DefaultJsonUriSchemaLoader
java.lang.Object
org.apache.camel.component.jsonvalidator.DefaultJsonUriSchemaLoader
- All Implemented Interfaces:
JsonUriSchemaLoader
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.networknt.schema.SchemaValidatorsConfigprotected com.networknt.schema.SpecVersion.VersionFlagprotected com.fasterxml.jackson.databind.ObjectMapper -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.networknt.schema.JsonSchemacreateSchema(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:JsonUriSchemaLoaderCreate a new Schema based on the schema input stream.- Specified by:
createSchemain interfaceJsonUriSchemaLoader- Parameters:
camelContext- camel contextschemaUri- the schema URI- Returns:
- a Schema to be used when validating incoming requests
- Throws:
Exception
-