Class DebugListener

All Implemented Interfaces:
EventListener, ServletContextListener, LifeCycle

@ManagedObject("Debug Listener") @Deprecated(since="2021-05-27") public class DebugListener extends AbstractLifeCycle implements ServletContextListener
Deprecated.
The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.
A Context Listener that produces additional debug. This listener if added to a ContextHandler, will produce additional debug information to either/or a specific log stream or the standard debug log. The events produced by ServletContextListener, ServletRequestListener, AsyncListener and ContextHandler.ContextScopeListener are logged.
  • Constructor Details

    • DebugListener

      public DebugListener()
      Deprecated.
    • DebugListener

      public DebugListener(@Name("renameThread") boolean renameThread, @Name("showHeaders") boolean showHeaders, @Name("dumpContext") boolean dumpContext)
      Deprecated.
    • DebugListener

      public DebugListener(@Name("outputStream") OutputStream out, @Name("renameThread") boolean renameThread, @Name("showHeaders") boolean showHeaders, @Name("dumpContext") boolean dumpContext)
      Deprecated.
  • Method Details

    • isRenameThread

      @ManagedAttribute("Rename thread within context scope") public boolean isRenameThread()
      Deprecated.
    • setRenameThread

      public void setRenameThread(boolean renameThread)
      Deprecated.
    • isShowHeaders

      @ManagedAttribute("Show request headers") public boolean isShowHeaders()
      Deprecated.
    • setShowHeaders

      public void setShowHeaders(boolean showHeaders)
      Deprecated.
    • isDumpContext

      @ManagedAttribute("Dump contexts at start") public boolean isDumpContext()
      Deprecated.
    • setDumpContext

      public void setDumpContext(boolean dumpContext)
      Deprecated.
    • contextInitialized

      public void contextInitialized(ServletContextEvent sce)
      Deprecated.
      Description copied from interface: ServletContextListener
      Notification that the web application initialization process is starting. All ServletContextListeners are notified of context initialization before any filter or servlet in the web application is initialized.
      Specified by:
      contextInitialized in interface ServletContextListener
      Parameters:
      sce - Information about the ServletContext that was initialized
    • contextDestroyed

      public void contextDestroyed(ServletContextEvent sce)
      Deprecated.
      Description copied from interface: ServletContextListener
      Notification that the servlet context is about to be shut down. All servlets and filters have been destroy()ed before any ServletContextListeners are notified of context destruction.
      Specified by:
      contextDestroyed in interface ServletContextListener
      Parameters:
      sce - Information about the ServletContext that was destroyed