Class HttpUtils
- java.lang.Object
-
- org.activiti.cloud.services.common.util.HttpUtils
-
public final class HttpUtils extends Object
Utils for handling http request/response
-
-
Field Summary
Fields Modifier and Type Field Description static StringHEADER_ATTACHEMNT_FILENAME
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FileContentmultipartToFileContent(org.springframework.web.multipart.MultipartFile file)static voidwriteFileToResponse(javax.servlet.http.HttpServletResponse response, FileContent fileContent, boolean attachment)
-
-
-
Field Detail
-
HEADER_ATTACHEMNT_FILENAME
public static final String HEADER_ATTACHEMNT_FILENAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
writeFileToResponse
public static void writeFileToResponse(javax.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
-
-