| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final BibDatabaseContext | |
| private final DialogService | |
| private final DoubleProperty | |
| private final String | |
| private final BibEntry | |
| private final FilePreferences | |
| private final boolean | |
| private final LinkedFile | |
| private final LinkedFileHandler | |
| private static final Logger | |
| private final String | |
| private final TaskExecutor |
| Access | Constructor and Description |
|---|---|
| public | DownloadLinkedFileAction(BibDatabaseContext databaseContext, BibEntry entry, LinkedFile linkedFile, String downloadUrl, DialogService dialogService, FilePreferences filePreferences, TaskExecutor taskExecutor, String suggestedName, boolean keepHtmlLink)
|
| public | DownloadLinkedFileAction(BibDatabaseContext databaseContext, BibEntry entry, LinkedFile linkedFile, String downloadUrl, DialogService dialogService, FilePreferences filePreferences, TaskExecutor taskExecutor)
Downloads the given linked file to the first existing file directory. |
| Modifier and Type | Method and Description |
|---|---|
| private boolean | |
| private void | |
| public ReadOnlyDoubleProperty | |
| public void | |
| private Optional | |
| private Optional | |
| private Optional | |
| private void | |
| private void | |
| private BackgroundTask |
| databaseContext | back to summary |
|---|---|
| private final BibDatabaseContext databaseContext | |
| dialogService | back to summary |
|---|---|
| private final DialogService dialogService | |
| downloadProgress | back to summary |
|---|---|
| private final DoubleProperty downloadProgress | |
| downloadUrl | back to summary |
|---|---|
| private final String downloadUrl | |
| entry | back to summary |
|---|---|
| private final BibEntry entry | |
| filePreferences | back to summary |
|---|---|
| private final FilePreferences filePreferences | |
| keepHtmlLink | back to summary |
|---|---|
| private final boolean keepHtmlLink | |
| linkedFile | back to summary |
|---|---|
| private final LinkedFile linkedFile | |
| linkedFileHandler | back to summary |
|---|---|
| private final LinkedFileHandler linkedFileHandler | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| suggestedName | back to summary |
|---|---|
| private final String suggestedName | |
| taskExecutor | back to summary |
|---|---|
| private final TaskExecutor taskExecutor | |
| DownloadLinkedFileAction | back to summary |
|---|---|
| public DownloadLinkedFileAction(BibDatabaseContext databaseContext, BibEntry entry, LinkedFile linkedFile, String downloadUrl, DialogService dialogService, FilePreferences filePreferences, TaskExecutor taskExecutor, String suggestedName, boolean keepHtmlLink) | |
| DownloadLinkedFileAction | back to summary |
|---|---|
| public DownloadLinkedFileAction(BibDatabaseContext databaseContext, BibEntry entry, LinkedFile linkedFile, String downloadUrl, DialogService dialogService, FilePreferences filePreferences, TaskExecutor taskExecutor) Downloads the given linked file to the first existing file directory. It keeps HTML files as URLs. | |
| checkSSLHandshake | back to summary |
|---|---|
| private boolean checkSSLHandshake(URLDownload urlDownload) | |
| doDownload | back to summary |
|---|---|
| private void doDownload(Path targetDirectory, URLDownload urlDownload) | |
| downloadProgress | back to summary |
|---|---|
| public ReadOnlyDoubleProperty downloadProgress() | |
| execute | back to summary |
|---|---|
public void execute()
| |
| inferFileType | back to summary |
|---|---|
| private Optional | |
| inferFileTypeFromMimeType | back to summary |
|---|---|
| private Optional | |
| inferFileTypeFromURL | back to summary |
|---|---|
| private Optional | |
| onFailure | back to summary |
|---|---|
| private void onFailure(URLDownload urlDownload, Exception ex) | |
| onSuccess | back to summary |
|---|---|
private void onSuccess(Path targetDirectory, Path downloadedFile)
| |
| prepareDownloadTask | back to summary |
|---|---|
| private BackgroundTask | |
| Modifier and Type | Field and Description |
|---|---|
| private final Path | |
| private final URL |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected Path |
| destination | back to summary |
|---|---|
| private final Path destination | |
| source | back to summary |
|---|---|
| private final URL source | |
| FileDownloadTask | back to summary |
|---|---|
| public FileDownloadTask(URL source, Path destination) | |
| call | back to summary |
|---|---|
| protected Path call() throws Exception Implements abstract org.
| |