public class ImpExExportResultDownload
extends <any>
| Constructor and Description |
|---|
ImpExExportResultDownload() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
executeBrowserMediaDownload(java.io.InputStream mediaStream,
java.lang.String mime,
java.lang.String fileName)
This is a wrapper method to execute the download in the browser using
Filedownload#save(InputStream, String, String). |
protected void |
executeMediaDownload(ImpExMediaModel media)
The method allows to transfer the given media to the use via browser's download capability.
|
MediaService |
getMediaService() |
void |
render(Component parent,
<any> context,
<any> listener) |
public void render(Component parent,
<any> context,
<any> listener)
protected void executeMediaDownload(ImpExMediaModel media)
media - media object to be passed on to the user's browser (download)protected void executeBrowserMediaDownload(java.io.InputStream mediaStream,
java.lang.String mime,
java.lang.String fileName)
Filedownload#save(InputStream, String, String).mediaStream - stream to be passed to the browser as the content of the downloaded filemime - mime type of the downloaded filefileName - name of the downloaded fileFiledownload#save(InputStream, String, String)public MediaService getMediaService()
Copyright © 2018 SAP SE. All Rights Reserved.