Class SentryServletContainerInitializer

java.lang.Object
io.sentry.servlet.jakarta.SentryServletContainerInitializer
All Implemented Interfaces:
jakarta.servlet.ServletContainerInitializer

public class SentryServletContainerInitializer extends Object implements jakarta.servlet.ServletContainerInitializer
Servlet container initializer used to add the SentryServletRequestListener to the ServletContext.
  • Constructor Details

    • SentryServletContainerInitializer

      public SentryServletContainerInitializer()
  • Method Details

    • onStartup

      public void onStartup(@Nullable @Nullable Set<Class<?>> c, @NotNull @NotNull jakarta.servlet.ServletContext ctx) throws jakarta.servlet.ServletException
      Specified by:
      onStartup in interface jakarta.servlet.ServletContainerInitializer
      Throws:
      jakarta.servlet.ServletException