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
,javax.servlet.ServletContextListener
,LifeCycle
@ManagedObject("Debug Listener")
public class DebugListener
extends AbstractLifeCycle
implements javax.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
(javax.servlet.ServletContextEvent sce) void
contextInitialized
(javax.servlet.ServletContextEvent sce) protected String
findContextName
(javax.servlet.ServletContext context) protected String
findRequestName
(javax.servlet.ServletRequest 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(javax.servlet.ServletContextEvent sce) - Specified by:
contextInitialized
in interfacejavax.servlet.ServletContextListener
-
contextDestroyed
public void contextDestroyed(javax.servlet.ServletContextEvent sce) - Specified by:
contextDestroyed
in interfacejavax.servlet.ServletContextListener
-
findContextName
-
findRequestName
-
log
-