@Rest(path="/debug", title="Debug", description="Debug Utilities.", allowedMethodParams="OPTIONS,POST") @HtmlDocConfig(navlinks={"up: request:/..","jetty-thread-dump: servlet:/jetty/dump?method=POST","options: servlet:/?method=OPTIONS"}) public class DebugResource extends BasicRestServlet
| Constructor and Description |
|---|
DebugResource() |
| Modifier and Type | Method and Description |
|---|---|
String |
createJettyDump(RestRequest req,
RestResponse res)
[POST /jetty/dump] - Generates and saves the jetty thread dump file to jetty-thread-dump.log.
|
ResourceDescriptions |
getChildren()
[GET /] - Shows child utilities.
|
Reader |
getJettyDump(RestRequest req,
RestResponse res)
[GET /jetty/dump] - Generates and retrieves the jetty thread dump.
|
getOptionsdestroy, getContext, getPath, getProperties, getRequest, getResponse, getServletConfig, init, log, log, log, log, logObjects, service, setContext, setRestResourceResolverdoDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, servicegetInitParameter, getInitParameterNames, getServletContext, getServletInfo, getServletName, initpublic DebugResource()
@RestMethod(name="GET", path="/", description="Show contents of config file.") public ResourceDescriptions getChildren() throws Exception
Exception@RestMethod(name="GET", path="/jetty/dump", description="Generates and retrieves the jetty thread dump.") public Reader getJettyDump(RestRequest req, RestResponse res)
@RestMethod(name="POST", path="/jetty/dump", description="Generates and saves the jetty thread dump file to jetty-thread-dump.log.") public String createJettyDump(RestRequest req, RestResponse res) throws Exception
ExceptionCopyright © 2016–2019 The Apache Software Foundation. All rights reserved.