Package io.hawt

Class HawtioContextListener

java.lang.Object
io.hawt.HawtioContextListener
All Implemented Interfaces:
jakarta.servlet.ServletContextListener, EventListener

public class HawtioContextListener extends Object implements jakarta.servlet.ServletContextListener
A ServletContextListener which initialises key Hawtio services in the webapp.
  • Constructor Details

    • HawtioContextListener

      public HawtioContextListener()
    • HawtioContextListener

      public HawtioContextListener(ConfigManager configManager)
  • Method Details

    • contextInitialized

      public void contextInitialized(jakarta.servlet.ServletContextEvent servletContextEvent)
      Specified by:
      contextInitialized in interface jakarta.servlet.ServletContextListener
    • contextDestroyed

      public void contextDestroyed(jakarta.servlet.ServletContextEvent servletContextEvent)
      Specified by:
      contextDestroyed in interface jakarta.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

      protected RuntimeException createServletException(Exception e)