Package com.networknt.schema.resource
Class UriSchemaLoader
- java.lang.Object
-
- com.networknt.schema.resource.UriSchemaLoader
-
- All Implemented Interfaces:
SchemaLoader
public class UriSchemaLoader extends Object implements SchemaLoader
Loads from uri.
-
-
Constructor Summary
Constructors Constructor Description UriSchemaLoader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStreamSource
getSchema(AbsoluteIri absoluteIri)
Loads a schema given the retrieval IRI.protected InputStream
openConnectionCheckRedirects(URLConnection c)
-
-
-
Method Detail
-
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
-
openConnectionCheckRedirects
protected InputStream openConnectionCheckRedirects(URLConnection c) throws IOException
- Throws:
IOException
-
-