com.github.fge.jsonschema.core.load
Class URIManager

java.lang.Object
  extended by 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

Constructor Summary
URIManager()
           
URIManager(LoadingConfiguration cfg)
           
 
Method Summary
 JsonNode getContent(URI uri)
          Get the content at a given URI as a JsonNode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URIManager

public URIManager()

URIManager

public URIManager(LoadingConfiguration cfg)
Method Detail

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