Class OkHttpExternalDocumentLoader
java.lang.Object
com.janeirodigital.shapetrees.client.okhttp.OkHttpExternalDocumentLoader
- All Implemented Interfaces:
ExternalDocumentLoader
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionloadExternalDocument
(URL resourceUrl) Load a non-POD document This fulfils the ExternalDocumentLoader interface, so this factory can be use in DocumentLoaderManager.setLoader(new OkHttpShapeTreeClientFactory(...));
-
Constructor Details
-
OkHttpExternalDocumentLoader
public OkHttpExternalDocumentLoader()
-
-
Method Details
-
loadExternalDocument
Load a non-POD document This fulfils the ExternalDocumentLoader interface, so this factory can be use in DocumentLoaderManager.setLoader(new OkHttpShapeTreeClientFactory(...));- Specified by:
loadExternalDocument
in interfaceExternalDocumentLoader
- Parameters:
resourceUrl
- URL of resource to be retrieved- Returns:
- a DocumentResponse with the results of a successful GET
- Throws:
ShapeTreeException
- if the GET was not successful
-