Package org.eclipse.jetty.server
Class DebugListener
- java.lang.Object
-
- org.eclipse.jetty.util.component.AbstractLifeCycle
-
- org.eclipse.jetty.server.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 byServletContextListener
,ServletRequestListener
,AsyncListener
andContextHandler.ContextScopeListener
are logged.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListener
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener
-
-
Constructor Summary
Constructors Constructor Description DebugListener()
Deprecated.DebugListener(boolean renameThread, boolean showHeaders, boolean dumpContext)
Deprecated.DebugListener(OutputStream out, boolean renameThread, boolean showHeaders, boolean dumpContext)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
contextDestroyed(ServletContextEvent sce)
Deprecated.Notification that the servlet context is about to be shut down.void
contextInitialized(ServletContextEvent sce)
Deprecated.Notification that the web application initialization process is starting.boolean
isDumpContext()
Deprecated.boolean
isRenameThread()
Deprecated.boolean
isShowHeaders()
Deprecated.void
setDumpContext(boolean dumpContext)
Deprecated.void
setRenameThread(boolean renameThread)
Deprecated.void
setShowHeaders(boolean showHeaders)
Deprecated.-
Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, setStopTimeout, start, stop, toString
-
-
-
-
Constructor Detail
-
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 Detail
-
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 interfaceServletContextListener
- 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 interfaceServletContextListener
- Parameters:
sce
- Information about the ServletContext that was destroyed
-
-