Class HttpUtils
java.lang.Object
org.activiti.cloud.services.common.util.HttpUtils
Utils for handling http request/response
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic FileContentmultipartToFileContent(org.springframework.web.multipart.MultipartFile file) static voidwriteFileToResponse(jakarta.servlet.http.HttpServletResponse response, FileContent fileContent, boolean attachment)
-
Field Details
-
HEADER_ATTACHEMNT_FILENAME
- See Also:
-
-
Method Details
-
writeFileToResponse
public static void writeFileToResponse(jakarta.servlet.http.HttpServletResponse response, FileContent fileContent, boolean attachment) throws IOException - Throws:
IOException
-
multipartToFileContent
public static FileContent multipartToFileContent(org.springframework.web.multipart.MultipartFile file) throws IOException - Throws:
IOException
-