Class HttpUtils


  • public final class HttpUtils
    extends Object
    Utils for handling http request/response
    • 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