Package io.hawt
Class HawtioContextListener
java.lang.Object
io.hawt.HawtioContextListener
- All Implemented Interfaces:
jakarta.servlet.ServletContextListener,EventListener
A
ServletContextListener which initialises key Hawtio services in the webapp.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidconfigureAuthenticationProviders(jakarta.servlet.ServletContext servletContext, AuthenticationConfiguration authConfig) Extension method that configures authentication providers.voidcontextDestroyed(jakarta.servlet.ServletContextEvent servletContextEvent) voidcontextInitialized(jakarta.servlet.ServletContextEvent servletContextEvent) protected RuntimeException
-
Constructor Details
-
HawtioContextListener
public HawtioContextListener() -
HawtioContextListener
-
-
Method Details
-
contextInitialized
public void contextInitialized(jakarta.servlet.ServletContextEvent servletContextEvent) - Specified by:
contextInitializedin interfacejakarta.servlet.ServletContextListener
-
contextDestroyed
public void contextDestroyed(jakarta.servlet.ServletContextEvent servletContextEvent) - Specified by:
contextDestroyedin interfacejakarta.servlet.ServletContextListener
-
configureAuthenticationProviders
protected void configureAuthenticationProviders(jakarta.servlet.ServletContext servletContext, AuthenticationConfiguration authConfig) Extension method that configures authentication providers. hawtio-springboot may configure Spring Security if needed. This method is not called if authentication is disabled in Hawtio.- Parameters:
servletContext-authConfig-
-
createServletException
-