diff options
author | Ilia Motornyi <elmot@vaadin.com> | 2018-08-07 15:49:49 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-07 15:49:49 +0300 |
commit | 156121c76953e2bbd2d66cf40fedf2d48cdac28d (patch) | |
tree | 9ac9a982cb3d6d4d9077f1cd9747ceafe8b15f0c /server/src/main | |
parent | 49f6f45cdf4895f179d9a630df6db096db3cdf66 (diff) | |
download | vaadin-framework-156121c76953e2bbd2d66cf40fedf2d48cdac28d.tar.gz vaadin-framework-156121c76953e2bbd2d66cf40fedf2d48cdac28d.zip |
Document how to handle cancelled file downloads. (#11079)
Diffstat (limited to 'server/src/main')
-rw-r--r-- | server/src/main/java/com/vaadin/server/FileDownloader.java | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/server/src/main/java/com/vaadin/server/FileDownloader.java b/server/src/main/java/com/vaadin/server/FileDownloader.java index e20ed3634b..b41e75f4cc 100644 --- a/server/src/main/java/com/vaadin/server/FileDownloader.java +++ b/server/src/main/java/com/vaadin/server/FileDownloader.java @@ -81,7 +81,6 @@ public class FileDownloader extends AbstractExtension { * * @param eventTrigger * the trigger to attach this extension to - * * @since 8.4 */ public void extend(EventTrigger eventTrigger) { @@ -132,16 +131,22 @@ public class FileDownloader extends AbstractExtension { /** * Checks whether the content type should be overridden. * - * @see #setOverrideContentType(boolean) - * * @return <code>true</code> if the content type will be overridden when * possible; <code>false</code> if the original content type will be * used. + * @see #setOverrideContentType(boolean) */ public boolean isOverrideContentType() { return overrideContentType; } + /** + * {@inheritDoc} + * + * @throws IOException + * if something goes wrong with the download or the user + * cancelled the file download process. + */ @Override public boolean handleConnectorRequest(VaadinRequest request, VaadinResponse response, String path) throws IOException { |