Class i18NextController

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

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

      • i18NextController

        public i18NextController()
    • Method Detail

      • translationHandler

        @CrossOrigin(origins="*",
                     allowCredentials="false")
        @GetMapping("/api/v1/locales/{lang}")
        @ResponseBody
        public org.springframework.http.ResponseEntity<?> translationHandler​(@PathVariable("lang")
                                                                             java.lang.String lang)
      • uploadHandler

        @PostMapping("/api/v1/uploadTranslations")
        @ResponseBody
        public org.springframework.http.ResponseEntity<?> uploadHandler​(@RequestParam
                                                                        org.springframework.web.multipart.MultipartFile file,
                                                                        @RequestParam(value="payload",required=false)
                                                                        java.lang.String payload,
                                                                        javax.servlet.http.HttpServletResponse response)
      • handleTranslationsUpload

        private org.springframework.http.ResponseEntity<?> handleTranslationsUpload​(org.springframework.web.multipart.MultipartFile file,
                                                                                    java.lang.String payload)
                                                                             throws java.lang.Exception
        Throws:
        java.lang.Exception
      • afterPropertiesSet

        public void afterPropertiesSet()
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean