Package no.hasmac.jsonld.loader
Class SchemeRouter
java.lang.Object
no.hasmac.jsonld.loader.SchemeRouter
- All Implemented Interfaces:
DocumentLoader
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final DocumentLoader
private final Map
<String, DocumentLoader> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DocumentLoader
loadDocument
(URI url, DocumentLoaderOptions options) Retrieve a remote document.set
(String scheme, DocumentLoader loader)
-
Field Details
-
INSTANCE
-
loaders
-
-
Constructor Details
-
SchemeRouter
public SchemeRouter()
-
-
Method Details
-
defaultInstance
-
set
-
loadDocument
Description copied from interface:DocumentLoader
Retrieve a remote document.- Specified by:
loadDocument
in interfaceDocumentLoader
- Parameters:
url
- of the remote document to fetchoptions
- to set the behavior of the loader- Returns:
Document
representing a remote document- Throws:
JsonLdError
-