Package com.networknt.schema.resource
Class DisallowSchemaLoader
java.lang.Object
com.networknt.schema.resource.DisallowSchemaLoader
- All Implemented Interfaces:
SchemaLoader
SchemaLoader
that disallows loading external resources.-
Method Summary
Modifier and TypeMethodDescriptionstatic DisallowSchemaLoader
Disallows loading schemas from external resources.getSchema
(AbsoluteIri absoluteIri) Loads a schema given the retrieval IRI.
-
Method Details
-
getInstance
Disallows loading schemas from external resources.- Returns:
- the disallow schema loader
-
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
-