Class HttpExternalDocumentLoader
java.lang.Object
com.janeirodigital.shapetrees.core.contentloaders.HttpExternalDocumentLoader
- All Implemented Interfaces:
ExternalDocumentLoader
Simple HTTP implementation of ExternalDocumentLoader provided as an example
as well as for its utility in unit tests.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionloadExternalDocument
(URL resourceUrl) Describes the retrieval of a remote document
-
Constructor Details
-
HttpExternalDocumentLoader
public HttpExternalDocumentLoader()
-
-
Method Details
-
loadExternalDocument
Description copied from interface:ExternalDocumentLoader
Describes the retrieval of a remote document- Specified by:
loadExternalDocument
in interfaceExternalDocumentLoader
- Parameters:
resourceUrl
- URL of resource to be retrieved- Returns:
- DocumentResponse representation which contains body and content type
- Throws:
ShapeTreeException
- ShapeTreeException
-