net.spy.jwebkit.debug
Class DebugServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by net.spy.jwebkit.JWHttpServlet
              extended by net.spy.jwebkit.debug.DebugServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class DebugServlet
extends JWHttpServlet

Servlet for getting a view of the JVM.

The following optional request parameters may be provided:

The following servlet init parameters may be provided:

The following sections are available by default:

See Also:
Serialized Form

Constructor Summary
DebugServlet()
           
 
Method Summary
protected  void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Process the request.
 void init(javax.servlet.ServletConfig conf)
          Initialize the debug servlet.
protected  boolean shouldShow(java.lang.String what)
          True if the named section should be shown.
protected  void showMore(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.io.PrintWriter out)
          Hook for subclasses of DebugServlet to provide more information.
 
Methods inherited from class net.spy.jwebkit.JWHttpServlet
getContextRelativeFilePathParameter, getLogger, sendHTML, sendPlain, sendSimple, service, service
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DebugServlet

public DebugServlet()
Method Detail

init

public void init(javax.servlet.ServletConfig conf)
          throws javax.servlet.ServletException
Initialize the debug servlet.

Specified by:
init in interface javax.servlet.Servlet
Overrides:
init in class javax.servlet.GenericServlet
Throws:
javax.servlet.ServletException

shouldShow

protected boolean shouldShow(java.lang.String what)
True if the named section should be shown.

Parameters:
what - the name of the section
Returns:
true if the section should be shown

showMore

protected void showMore(javax.servlet.http.HttpServletRequest request,
                        javax.servlet.http.HttpServletResponse response,
                        java.io.PrintWriter out)
                 throws javax.servlet.ServletException,
                        java.io.IOException
Hook for subclasses of DebugServlet to provide more information.

Parameters:
request - the servlet request
response - the servlet response
out - the output stream
Throws:
javax.servlet.ServletException
java.io.IOException

doGet

protected void doGet(javax.servlet.http.HttpServletRequest request,
                     javax.servlet.http.HttpServletResponse response)
              throws javax.servlet.ServletException,
                     java.io.IOException
Process the request.

Overrides:
doGet in class javax.servlet.http.HttpServlet
Throws:
javax.servlet.ServletException
java.io.IOException


Copyright © 1995-2007 SPY Internetworking. All Rights Reserved.