| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final BibDatabaseContext | |
| private final DialogService | |
| private Map | |
| private final DoubleProperty | |
| private final String | |
| private final BibEntry | |
| private final ExternalApplicationsPreferences | |
| private final FilePreferences | |
| private final boolean | |
| private final LinkedFile | |
| private final LinkedFileHandler | |
| private static final Logger | |
| private final String | |
| private final TaskExecutor | |
| private final UndoManager |
| Access | Constructor and Description |
|---|---|
| public | DownloadLinkedFileAction(BibDatabaseContext databaseContext, BibEntry entry, LinkedFile linkedFile, String downloadUrl, DialogService dialogService, ExternalApplicationsPreferences externalApplicationsPreferences, FilePreferences filePreferences, TaskExecutor taskExecutor, String suggestedName, boolean keepHtmlLink, UndoManager undoManager)
|
| public | DownloadLinkedFileAction(BibDatabaseContext databaseContext, BibEntry entry, LinkedFile linkedFile, String downloadUrl, DialogService dialogService, ExternalApplicationsPreferences externalApplicationsPreferences, FilePreferences filePreferences, TaskExecutor taskExecutor, UndoManager undoManager)
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 org.jabref.logic.util.BackgroundTask | |
| public void |
| databaseContext | back to summary |
|---|---|
| private final BibDatabaseContext databaseContext | |
| dialogService | back to summary |
|---|---|
| private final DialogService dialogService | |
| downloadHeaders | back to summary |
|---|---|
| private Map<String, String> downloadHeaders | |
| downloadProgress | back to summary |
|---|---|
| private final DoubleProperty downloadProgress | |
| downloadUrl | back to summary |
|---|---|
| private final String downloadUrl | |
| entry | back to summary |
|---|---|
| private final BibEntry entry | |
| externalApplicationsPreferences | back to summary |
|---|---|
| private final ExternalApplicationsPreferences externalApplicationsPreferences | |
| 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 | |
| undoManager | back to summary |
|---|---|
| private final UndoManager undoManager | |
| DownloadLinkedFileAction | back to summary |
|---|---|
| public DownloadLinkedFileAction(BibDatabaseContext databaseContext, BibEntry entry, LinkedFile linkedFile, String downloadUrl, DialogService dialogService, ExternalApplicationsPreferences externalApplicationsPreferences, FilePreferences filePreferences, TaskExecutor taskExecutor, String suggestedName, boolean keepHtmlLink, UndoManager undoManager) | |
| DownloadLinkedFileAction | back to summary |
|---|---|
| public DownloadLinkedFileAction(BibDatabaseContext databaseContext, BibEntry entry, LinkedFile linkedFile, String downloadUrl, DialogService dialogService, ExternalApplicationsPreferences externalApplicationsPreferences, FilePreferences filePreferences, TaskExecutor taskExecutor, UndoManager undoManager) 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 org.jabref.logic.util.BackgroundTask | |
| setDownloadHeaders | back to summary |
|---|---|
| public void setDownloadHeaders(Map<String, String> headers) | |
| Modifier and Type | Field and Description |
|---|---|
| private final Path | |
| private final Map | |
| private final URL |
| Access | Constructor and Description |
|---|---|
| public |
| destination | back to summary |
|---|---|
| private final Path destination | |
| headers | back to summary |
|---|---|
| private final Map<String, String> headers | |
| source | back to summary |
|---|---|
| private final URL source | |
| FileDownloadTask | back to summary |
|---|---|
| public FileDownloadTask(URL source, Path destination, Map<String, String> headers) | |
| call | back to summary |
|---|---|
public Path call() throws org.jabref.logic.importer.FetcherException, IOException
| |