Package io.hawt.springboot
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 -
Method Summary
Modifier and TypeMethodDescriptionvoidaddResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry) forwardHawtioRequestToIndexHtml(jakarta.servlet.http.HttpServletRequest request) Forwards all React router route URLs to index.html.voidsetPlugins(List<HawtioPlugin> plugins) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
-
HawtioEndpoint
-
-
Method Details
-
setPlugins
-
forwardHawtioRequestToIndexHtml
@RequestMapping(value={"","{path:^(?:(?!\\bjolokia\\b|auth|css|fonts|img|js|user|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
-
addResourceHandlers
public void addResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry) - Specified by:
addResourceHandlersin interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-