Class ExternalFilesDownloader
java.lang.Object
io.goobi.viewer.model.files.external.ExternalFilesDownloader
Downloads files or ZIP archives from remote URIs to a local target directory, with optional decryption and progress tracking.
Supports plain files as well as ZIP archives that are automatically extracted after download.
-
Constructor Summary
ConstructorsConstructorDescriptionExternalFilesDownloader(Path destinationdFolder, Consumer<Progress> progressMonitor) -
Method Summary
Modifier and TypeMethodDescriptiondownloadExternalFiles(URI downloadUri, String urlTemplate) downloadExternalFiles(URI uri, Map<String, String> httpHeader) downloadHttpResource(URI uri, Map<String, String> httpHeader) static booleanresourceExists(String url, String urlTemplate) static booleanresourceExists(URI uri, Map<String, String> httpHeader)
-
Constructor Details
-
ExternalFilesDownloader
-
-
Method Details
-
downloadExternalFiles
- Throws:
IOException
-
downloadExternalFiles
- Throws:
IOException
-
resourceExists
-
resourceExists
-
downloadHttpResource
- Throws:
IOException
-