Class HawtioEndpoint

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

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addResourceHandlers​(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry)  
      java.lang.String forwardHawtioRequestToIndexHtml()
      Forwards all Angular route URLs to index.html.
      java.util.List<HawtioPlugin> getPlugins()  
      void setPlugins​(java.util.List<HawtioPlugin> plugins)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.springframework.web.servlet.config.annotation.WebMvcConfigurer

        addArgumentResolvers, addCorsMappings, addFormatters, addInterceptors, addReturnValueHandlers, addViewControllers, configureAsyncSupport, configureContentNegotiation, configureDefaultServletHandling, configureHandlerExceptionResolvers, configureMessageConverters, configurePathMatch, configureViewResolvers, extendHandlerExceptionResolvers, extendMessageConverters, getMessageCodesResolver, getValidator
    • Method Detail

      • setPlugins

        public void setPlugins​(java.util.List<HawtioPlugin> plugins)
      • forwardHawtioRequestToIndexHtml

        @RequestMapping(value={"","{path:^(?:(?!\\bjolokia\\b|auth|css|fonts|img|js|user|oauth|plugins|static|\\.).)*$}/**"},
                        produces="text/html")
        public java.lang.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 java.util.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