public static class FileDownloadServlet.ContentSet extends Object
FileDownloadServlet.ContentSet.Content elements. Those elements may have a TTL assigned
and are discarded after this time elapses.| Modifier and Type | Class and Description |
|---|---|
class |
FileDownloadServlet.ContentSet.Content
The Content represents the downloadable file.
|
| Modifier and Type | Method and Description |
|---|---|
FileDownloadServlet.ContentSet.Content |
createContent(String fileName,
String contentType,
byte[] buffer)
Use to create a
FileDownloadServlet.ContentSet.Content element with unlimited lifetime. |
FileDownloadServlet.ContentSet.Content |
createContent(String fileName,
String contentType,
byte[] buffer,
long ttl)
Use to create a
FileDownloadServlet.ContentSet.Content element with limited lifetime. |
public FileDownloadServlet.ContentSet.Content createContent(String fileName, String contentType, byte[] buffer)
FileDownloadServlet.ContentSet.Content element with unlimited lifetime.fileName - the filename the user should save the file withcontentType - the contentType of the databuffer - the content data you want to sendpublic FileDownloadServlet.ContentSet.Content createContent(String fileName, String contentType, byte[] buffer, long ttl)
FileDownloadServlet.ContentSet.Content element with limited lifetime.fileName - the filename the user should save the file withcontentType - the contentType of the databuffer - the content data you want to sendttl - the lifetime in millisecondsCopyright © 2017 SAP SE. All Rights Reserved.