Class HttpUtils

java.lang.Object
org.qubership.atp.dataset.model.utils.HttpUtils

public class HttpUtils extends Object
  • Constructor Details

    • HttpUtils

      public HttpUtils()
  • Method Details

    • buildFileResponseEntity

      public static org.springframework.http.ResponseEntity<org.springframework.core.io.InputStreamResource> buildFileResponseEntity(File file, String contentType)
      Building response entity with a file for downloading.
      Parameters:
      file - formed file
      contentType - file type
      Returns:
      response entity
      Throws:
      FileExcelExportNotFoundException - in case if file is missing