Class EntityJsonURIDownloader
- java.lang.Object
-
- org.symphonyoss.symphony.entityjson.EntityJsonURIDownloader
-
- All Implemented Interfaces:
com.github.fge.jsonschema.core.load.download.URIDownloader
public class EntityJsonURIDownloader extends Object implements com.github.fge.jsonschema.core.load.download.URIDownloader
URIDownloader which restricts schema downloads to known hosts.- Author:
- Bruce Skingle
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStreamfetch(URI source)static com.github.fge.jsonschema.core.load.download.URIDownloadergetInstance()Singleton getter.
-
-
-
Method Detail
-
getInstance
public static com.github.fge.jsonschema.core.load.download.URIDownloader getInstance()
Singleton getter. This is merely a performance optimisation, this class does not rely on there being only a single instance.- Returns:
- The single instance.
-
fetch
public InputStream fetch(URI source) throws IOException
- Specified by:
fetchin interfacecom.github.fge.jsonschema.core.load.download.URIDownloader- Throws:
IOException
-
-