Package com.apicatalog.jsonld.loader
Interface DocumentLoader
-
- All Known Implementing Classes:
FileLoader
,HttpLoader
,LRUDocumentCache
,SchemeRouter
public interface DocumentLoader
TheDocumentLoader
defines an interface that custom document loaders have to implement to be used to retrieve remote documents and contexts.- See Also:
- LoadDocumentCallback Specification
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Document
loadDocument(URI url, DocumentLoaderOptions options)
Retrieve a remote document.
-
-
-
Method Detail
-
loadDocument
Document loadDocument(URI url, DocumentLoaderOptions options) throws JsonLdError
Retrieve a remote document.- Parameters:
url
- of the remote document to fetchoptions
- to set the behavior of the loader- Returns:
Document
representing a remote document- Throws:
JsonLdError
-
-