com.github.fge.jsonschema.core.load
Class URIManager
java.lang.Object
com.github.fge.jsonschema.core.load.URIManager
public final class URIManager
- extends Object
Class to fetch JSON documents
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.
- See Also:
SchemaLoader
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
URIManager
public URIManager()
URIManager
public URIManager(LoadingConfiguration cfg)
getContent
public JsonNode getContent(URI uri)
throws ProcessingException
- Get the content at a given URI as a
JsonNode
- Parameters:
uri - the URI
- Returns:
- the content
- Throws:
NullPointerException - provided URI is null
ProcessingException - scheme is not registered, failed to get
content, or content is not JSON