Package com.networknt.schema.resource
Class AllowSchemaLoader
java.lang.Object
com.networknt.schema.resource.AllowSchemaLoader
- All Implemented Interfaces:
SchemaLoader
SchemaLoader that allows loading external resources.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetSchema(AbsoluteIri absoluteIri) Loads a schema given the retrieval IRI.
-
Constructor Details
-
AllowSchemaLoader
Constructor.- Parameters:
allowed- the predicate to determine which external resource is allowed to be loaded
-
-
Method Details
-
getSchema
Description copied from interface:SchemaLoaderLoads a schema given the retrieval IRI.- Specified by:
getSchemain interfaceSchemaLoader- Parameters:
absoluteIri- the retrieval IRI- Returns:
- the input stream source
-