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 SummaryModifier and TypeMethodDescriptionstatic FilecreateTmpZip(List<Content> contentToDownload) static voidDownloads the specified documents.static voiddownloadAsZip(List<Content> contentToDownload) Downloads the specified documents.
- 
Method Details- 
downloadpublic 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 failed
- AuthenticationException- re-logon required
 
- 
downloadAsZippublic 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 failed
- AuthenticationException- re-logon required
 
- 
createTmpZippublic static File createTmpZip(List<Content> contentToDownload) throws IOException, BinaryUnavailableException, AuthenticationException 
 
-