Class FilesDownloadHelper

java.lang.Object
org.qubership.atp.ram.utils.FilesDownloadHelper

public class FilesDownloadHelper extends Object
  • Constructor Details

    • FilesDownloadHelper

      public FilesDownloadHelper()
  • Method Details

    • addDownloadToFileSystemHeaders

      public static org.springframework.http.HttpHeaders addDownloadToFileSystemHeaders(String fileName)
      Util method to add headers for successful file download to file system.
      Parameters:
      fileName - - file name.
    • getGridFsFileResponseEntity

      public org.springframework.http.ResponseEntity<Object> getGridFsFileResponseEntity(GridFsFileData fileData)
      Cover GridFS file into response entity.
      Parameters:
      fileData - file data
      Returns:
      response entity