Class BaseDownloadTool

java.lang.Object
slash.navigation.download.tools.BaseDownloadTool
Direct Known Subclasses:
ScanWebsite, SnapshotCatalog, UpdateCatalog

public class BaseDownloadTool extends Object
Base for the download tools.
Author:
Christian Pesch
  • Field Details

  • Constructor Details

    • BaseDownloadTool

      public BaseDownloadTool()
  • Method Details

    • getUrl

      public String getUrl()
    • setUrl

      public void setUrl(String url)
    • getId

      public String getId()
    • setId

      public void setId(String id)
    • getDataSourcesServer

      public String getDataSourcesServer()
    • setDataSourcesServer

      public void setDataSourcesServer(String dataSourcesServer)
    • setDataSourcesUserName

      public void setDataSourcesUserName(String dataSourcesUserName)
    • setDataSourcesPassword

      public void setDataSourcesPassword(String dataSourcesPassword)
    • readDataSourcesPasswordFile

      protected String readDataSourcesPasswordFile(File passwordFile) throws IOException
      Reads a password from a file (e.g. a systemd credentials mount) instead of the command line, so it never appears in argv; trims a trailing newline so a plain echo password > file works.
      Throws:
      IOException
    • hasDataSourcesServer

      protected boolean hasDataSourcesServer()
    • getDataSourcesUrl

      protected String getDataSourcesUrl()
    • getCredentials

      protected Credentials getCredentials()
    • loadDataSource

      protected DataSource loadDataSource(String id) throws IOException, jakarta.xml.bind.JAXBException
      Throws:
      IOException
      jakarta.xml.bind.JAXBException
    • getSnapshotDirectory

      protected File getSnapshotDirectory()