Class EmailController

  • All Implemented Interfaces:
    org.springframework.beans.factory.InitializingBean

    @Controller
    public class EmailController
    extends java.lang.Object
    implements org.springframework.beans.factory.InitializingBean
    • Constructor Detail

      • EmailController

        public EmailController()
    • Method Detail

      • verifyUser

        @CrossOrigin(origins="*",
                     allowCredentials="true")
        @GetMapping("/verify")
        @ResponseBody
        public void verifyUser​(@RequestParam("token")
                               java.lang.String token,
                               javax.servlet.http.HttpServletResponse response)
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • resetPassword

        @PostMapping("/resetPassword")
        public void resetPassword​(@RequestParam("email")
                                  java.lang.String email,
                                  javax.servlet.http.HttpServletResponse response)
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • changePassword

        @GetMapping("/changePassword")
        public void changePassword​(@RequestParam("token")
                                   java.lang.String token,
                                   javax.servlet.http.HttpServletResponse response)
                            throws java.io.IOException
        Throws:
        java.io.IOException
      • savePassword

        @PostMapping("/savePassword")
        @ResponseBody
        public org.springframework.http.ResponseEntity<?> savePassword​(@RequestParam("password")
                                                                       java.lang.String password)
      • saveContactForm

        @PostMapping("/saveContactForm")
        @ResponseBody
        public org.springframework.http.ResponseEntity<?> saveContactForm​(@RequestBody
                                                                          EmailMessage emailMessage)
      • saveContactFormWithAttachments

        @PostMapping("/saveContactFormWithAttachments")
        @ResponseBody
        public org.springframework.http.ResponseEntity<?> saveContactFormWithAttachments​(@RequestBody
                                                                                         EmailMessage emailMessage)
      • sendUploadRequest

        @PostMapping("/sendUploadRequest")
        @ResponseBody
        public org.springframework.http.ResponseEntity<?> sendUploadRequest​(@RequestBody
                                                                            EmailMessage emailMessage)
      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws java.lang.Exception
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Throws:
        java.lang.Exception