Class PageBuilderController

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

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

      • PageBuilderController

        public PageBuilderController()
    • Method Detail

      • themeHandler

        @RequestMapping(value="/api/v1/{site:^(?!sock).+$}/theme.css",
                        produces="text/css")
        @ResponseBody
        public org.springframework.http.ResponseEntity<?> themeHandler​(@PathVariable("site")
                                                                       java.lang.String site,
                                                                       javax.servlet.http.HttpServletRequest request)
        This is entrypoint for HTTP-requests from the clients, where it loads a HTML-template from filesystem.
        Parameters:
        site - this is identification for a folder in /MSM2/www/{site}, except for "sock" as this was used for WebSockets
        request - http servlet request
        Returns:
        response as valid HTML
      • afterPropertiesSet

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