Contents
Interface DynamicFileDownloader.FileNameGenerator
- All Superinterfaces:
Serializable
- Enclosing class:
DynamicFileDownloader
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public static interface DynamicFileDownloader.FileNameGenerator
extends Serializable
Generates name dynamically per request. Override for example to add
timestamps to the names of the downloaded files or to configure response
headers (executed during download, but before writing the actual response
body).
- Author:
- mstahv
-
Method Summary
Modifier and TypeMethodDescriptiongetFileName
(com.vaadin.flow.server.VaadinRequest request) Creates the filename for the downloaded files.