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
SchemaLoader
that disallows loading external resources.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DisallowSchemaLoader
getInstance()
Disallows loading schemas from external resources.InputStreamSource
getSchema(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:SchemaLoader
Loads a schema given the retrieval IRI.- Specified by:
getSchema
in interfaceSchemaLoader
- Parameters:
absoluteIri
- the retrieval IRI- Returns:
- the input stream source
-
-