com.vaadin.flow.server.streams.
Interface InputStreamDownloadCallback
All Superinterfaces:
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A callback for providing an InputStream, other download meta-data and
handling logic for InputStreamDownloadHandler
.
The method invocation may throw an IOException
to handle cases where
reading from InputStream fails.
Since:
24.8
-
Method Summary
Modifier and TypeMethodDescriptioncomplete
(DownloadEvent downloadEvent) Applies the given
DownloadEvent
to provide aDownloadResponse
.
-
Method Details
-
complete
Applies the given
DownloadEvent
to provide aDownloadResponse
.Parameters:
downloadEvent
- the event containing information about the download requestReturns:
a
DownloadResponse
containing the InputStream and other meta-data for the downloadThrows:
IOException
- if an error occurs while reading from InputStream fails
-