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 java.lang.Object implements org.springframework.web.servlet.config.annotation.WebMvcConfigurerSpring Boot endpoint to expose Hawtio.
-
-
Constructor Summary
Constructors Constructor Description HawtioEndpoint(EndpointPathResolver endpointPath)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddResourceHandlers(org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry registry)java.lang.StringforwardHawtioRequestToIndexHtml()Forwards all Angular route URLs to index.html.java.util.List<HawtioPlugin>getPlugins()voidsetPlugins(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
-
-
-
-
Constructor Detail
-
HawtioEndpoint
public HawtioEndpoint(EndpointPathResolver endpointPath)
-
-
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:
addResourceHandlersin interfaceorg.springframework.web.servlet.config.annotation.WebMvcConfigurer
-
-