Package com.saperion.ngc.util
Class DownloadUtil
java.lang.Object
com.saperion.ngc.util.DownloadUtil
- All Implemented Interfaces:
Serializable
Utility class used to download content.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic FilecreateTmpZip(List<Content> contentToDownload) static voidDownloads the specified documents.static voiddownloadAsZip(List<Content> contentToDownload) Downloads the specified documents.
-
Method Details
-
download
public static void download(List<Content> contentToDownload) throws DownloadFailedException, AuthenticationException Downloads the specified documents.- Parameters:
contentToDownload- content elements to download- Throws:
DownloadFailedException- when downloading the content failedAuthenticationException- re-logon required
-
downloadAsZip
public static void downloadAsZip(List<Content> contentToDownload) throws DownloadFailedException, AuthenticationException Downloads the specified documents.- Parameters:
contentToDownload- content elements to download- Throws:
DownloadFailedException- when downloading the content failedAuthenticationException- re-logon required
-
createTmpZip
public static File createTmpZip(List<Content> contentToDownload) throws IOException, BinaryUnavailableException, AuthenticationException
-