| org.araneaframework.http.widget.DownloaderWidget org.araneaframework.http.widget.FileDownloaderWidget
All known Subclasses: org.araneaframework.http.service.FileDownloaderService,
FileDownloaderWidget | public class FileDownloaderWidget extends DownloaderWidget (Code) | | Widget that serves content (allows downloading) of specified files.
author: Taimo Peelo (taimo@araneaframework.org) author: Alar Kvell (alar@araneaframework.org) |
contentDispositionInline | protected boolean contentDispositionInline(Code) | | |
FileDownloaderWidget | public FileDownloaderWidget(byte[] fileContent, String contentType, String fileName)(Code) | | |
FileDownloaderWidget | public FileDownloaderWidget(byte[] fileContent, Map headers)(Code) | | since: 1.1 |
close | protected void close()(Code) | | |
isContentDispositionInline | public boolean isContentDispositionInline()(Code) | | Returns value of currently used content-disposition response header.
false if content-disposition header is set to "attachment" |
normalizeFileName | protected String normalizeFileName(String fileName)(Code) | | Used internally to extract only file name from supplied filename (no file path).
|
setContentDispositionInline | public void setContentDispositionInline(boolean contentDispositionInline)(Code) | | Sets content-disposition header to "inline" (true) or "attachment" (false).
|
staticNormalizeFileName | public static String staticNormalizeFileName(String fileName)(Code) | | |
|
|