Class HawtioEndpoint

  • All Implemented Interfaces:
    org.springframework.web.servlet.config.annotation.WebMvcConfigurer

    @ControllerEndpoint(id="hawtio")
    public class HawtioEndpoint
    extends Object
    implements org.springframework.web.servlet.config.annotation.WebMvcConfigurer
    Spring Boot endpoint to expose Hawtio.
    • Method Detail

      • forwardHawtioRequestToIndexHtml

        @RequestMapping(value={"","{path:^(?:(?!\\bjolokia\\b|auth|css|fonts|img|js|user|oauth|plugins|\\.).)*$}/**"},
                        produces="text/html")
        public String forwardHawtioRequestToIndexHtml()
        Forwards all Angular route URLs to index.html. Ignores jolokia paths and paths for other Hawtio resources.
        Returns:
        The Spring Web forward directive for the Hawtio index.html resource.
      • getPlugins

        @RequestMapping("/plugin")
        @ResponseBody
        public List<HawtioPlugin> getPlugins()
      • addResourceHandlers

        public void addResourceHandlers​(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry)
        Specified by:
        addResourceHandlers in interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer