Package com.networknt.schema.resource
Class DisallowSchemaLoader
- java.lang.Object
-
- com.networknt.schema.resource.DisallowSchemaLoader
-
- All Implemented Interfaces:
SchemaLoader
public class DisallowSchemaLoader extends Object implements SchemaLoader
SchemaLoaderthat disallows loading external resources.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DisallowSchemaLoadergetInstance()Disallows loading schemas from external resources.InputStreamSourcegetSchema(AbsoluteIri absoluteIri)Loads a schema given the retrieval IRI.
-
-
-
Method Detail
-
getInstance
public static DisallowSchemaLoader getInstance()
Disallows loading schemas from external resources.- Returns:
- the disallow schema loader
-
getSchema
public InputStreamSource getSchema(AbsoluteIri absoluteIri)
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
-
-