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.SchemaValidatorsConfigconfigprotected com.networknt.schema.SpecVersion.VersionFlagdefaultVersionprotected com.fasterxml.jackson.databind.ObjectMappermapper
-
Constructor Summary
Constructors Constructor Description DefaultJsonUriSchemaLoader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.networknt.schema.JsonSchemacreateSchema(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 ExceptionDescription 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
-
-