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:SchemaLoader
Loads a schema given the retrieval IRI.- Specified by:
getSchema
in interfaceSchemaLoader
- Parameters:
absoluteIri
- the retrieval IRI- Returns:
- the input stream source
-