Package org.eclipse.jetty.ee10.servlet
Class DebugListener
java.lang.Object
org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.ee10.servlet.DebugListener
- All Implemented Interfaces:
jakarta.servlet.ServletContextListener
,EventListener
,LifeCycle
@ManagedObject("Debug Listener")
public class DebugListener
extends AbstractLifeCycle
implements jakarta.servlet.ServletContextListener
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.-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
AbstractLifeCycle.AbstractLifeCycleListener, AbstractLifeCycle.StopException
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle
LifeCycle.Listener
-
Field Summary
-
Constructor Summary
ConstructorDescriptionDebugListener
(boolean renameThread, boolean showHeaders, boolean dumpContext) DebugListener
(OutputStream out, boolean renameThread, boolean showHeaders, boolean dumpContext) -
Method Summary
Modifier and TypeMethodDescriptionvoid
contextDestroyed
(jakarta.servlet.ServletContextEvent sce) void
contextInitialized
(jakarta.servlet.ServletContextEvent sce) protected String
findContextName
(jakarta.servlet.ServletContext context) protected String
findRequestName
(jakarta.servlet.ServletRequest request) protected String
findRequestName
(ServletContextRequest request) boolean
boolean
boolean
protected void
void
setDumpContext
(boolean dumpContext) void
setRenameThread
(boolean renameThread) void
setShowHeaders
(boolean showHeaders) Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addEventListener, doStart, doStop, getEventListeners, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeEventListener, setEventListeners, start, stop, toString
-
Constructor Details
-
DebugListener
public DebugListener() -
DebugListener
-
DebugListener
public DebugListener(@Name("outputStream") OutputStream out, @Name("renameThread") boolean renameThread, @Name("showHeaders") boolean showHeaders, @Name("dumpContext") boolean dumpContext)
-
-
Method Details
-
isRenameThread
-
setRenameThread
public void setRenameThread(boolean renameThread) -
isShowHeaders
-
setShowHeaders
public void setShowHeaders(boolean showHeaders) -
isDumpContext
-
setDumpContext
public void setDumpContext(boolean dumpContext) -
contextInitialized
public void contextInitialized(jakarta.servlet.ServletContextEvent sce) - Specified by:
contextInitialized
in interfacejakarta.servlet.ServletContextListener
-
contextDestroyed
public void contextDestroyed(jakarta.servlet.ServletContextEvent sce) - Specified by:
contextDestroyed
in interfacejakarta.servlet.ServletContextListener
-
findContextName
-
findRequestName
-
findRequestName
-
log
-