com.twitter.common.net.http.handlers
Class ThreadStackPrinter

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.twitter.common.net.http.handlers.TextResponseHandler
              extended by com.twitter.common.net.http.handlers.ThreadStackPrinter
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class ThreadStackPrinter
extends TextResponseHandler

HTTP handler to print the stacks of all live threads.

See Also:
Serialized Form

Constructor Summary
ThreadStackPrinter()
           
 
Method Summary
 Iterable<String> getLines(javax.servlet.http.HttpServletRequest request)
          Returns the lines to be printed as the body of the response.
 
Methods inherited from class com.twitter.common.net.http.handlers.TextResponseHandler
doGet
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadStackPrinter

public ThreadStackPrinter()
Method Detail

getLines

public Iterable<String> getLines(javax.servlet.http.HttpServletRequest request)
Description copied from class: TextResponseHandler
Returns the lines to be printed as the body of the response.

Specified by:
getLines in class TextResponseHandler
Returns:
An iterable collection of lines to respond to the request with.