public final class URIManager extends Object
This uses a map of URIDownloader instances to fetch the contents
of a URI as an InputStream, then tries and turns this content into
JSON using an ObjectMapper.
Normally, you will never use this class directly.
SchemaLoader| Constructor and Description |
|---|
URIManager() |
URIManager(LoadingConfiguration cfg) |
| Modifier and Type | Method and Description |
|---|---|
JsonNode |
getContent(URI uri)
Get the content at a given URI as a
JsonNode |
public URIManager()
public URIManager(LoadingConfiguration cfg)
public JsonNode getContent(URI uri) throws ProcessingException
JsonNodeuri - the URINullPointerException - provided URI is nullProcessingException - scheme is not registered, failed to get
content, or content is not JSON