Class HawtioEndpoint

java.lang.Object
io.hawt.springboot.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.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry)
     
    forwardHawtioRequestToIndexHtml(jakarta.servlet.http.HttpServletRequest request)
    Forwards all React router route URLs to index.html.
     
    void
     

    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
  • Constructor Details

  • Method Details

    • setPlugins

      public void setPlugins(List<HawtioPlugin> plugins)
    • forwardHawtioRequestToIndexHtml

      @RequestMapping(value={"","{path:^(?:(?!\\bjolokia\\b|auth|css|fonts|img|js|user|oauth|static|\\.).)*$}/**"}, produces="text/html") public String forwardHawtioRequestToIndexHtml(jakarta.servlet.http.HttpServletRequest request)
      Forwards all React router 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