Class S3Uploader

  • Constructor Details

    • S3Uploader

      public S3Uploader(NBComponent baseComponent)
  • Method Details

    • uploadDirToUrl

      public String uploadDirToUrl(String localFilePath, String urlTemplate)
      Upload the local file path to the specified S3 URL, then return the URL of the bucket in its fully expanded form. See the details on token expansions in the s3.md help docs.
      Parameters:
      localFilePath - The path to the local directory
      urlTemplate - A template that is expanded to a valid S3 URL
      Returns:
      The fully expanded name of the URL used for upload
    • uploadDirToUrlTokenized

      public String uploadDirToUrlTokenized(String localFilePath, String urlTemplate, Map<String,String> params)
      Upload the local file path to the specified S3 URL, then return the URL of the bucket in its fully expanded form. See the details on token expansions in the s3.md help docs. Any params which are provided supersede the normally provided values from the system.
      Parameters:
      localFilePath - The path to the local directory
      urlTemplate - A template that is expanded to a valid S3 URL
      params - Additional token expansions which will take precedence over other available values.
      Returns:
      The fully expanded name of the URL used for upload