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
config
protected com.networknt.schema.SpecVersion.VersionFlag
defaultVersion
protected com.fasterxml.jackson.databind.ObjectMapper
mapper
-
Constructor Summary
Constructors Constructor Description DefaultJsonUriSchemaLoader()
-
Method Summary
All Methods Instance Methods Concrete Methods 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.
-
-
-
Method Detail
-
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
-
-