Package com.apicatalog.jsonld.loader
Interface DocumentLoader
-
- All Known Implementing Classes:
FileLoader,HttpLoader,SchemeRouter
public interface DocumentLoaderTheDocumentLoaderdefines 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 DocumentloadDocument(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:
Documentrepresenting a remote document- Throws:
JsonLdError
-
-