@Service public class DownloadServiceImpl extends java.lang.Object implements DownloadService
| Constructor and Description |
|---|
DownloadServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
java.io.InputStream |
downloadFile(UriComponents uriComponents)
Downloads a file using the parameters within the
UriComponents. |
public java.io.InputStream downloadFile(UriComponents uriComponents)
DownloadServiceUriComponents.
Rather than passing the full url to the function, the details are separated
so the URI can parse the special characters in the path properly.
downloadFile in interface DownloadServiceuriComponents - component that has all the details to download a fileInputStream based on whether the download was successful or not