Package org.qubership.atp.ram.utils
Class FilesDownloadHelper
java.lang.Object
org.qubership.atp.ram.utils.FilesDownloadHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.springframework.http.HttpHeadersaddDownloadToFileSystemHeaders(String fileName) Util method to add headers for successful file download to file system.org.springframework.http.ResponseEntity<Object> getGridFsFileResponseEntity(GridFsFileData fileData) Cover GridFS file into response entity.
-
Constructor Details
-
FilesDownloadHelper
public FilesDownloadHelper()
-
-
Method Details
-
addDownloadToFileSystemHeaders
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
-