request parameter to debug the system properties in the dump servlet

git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@3093 7e9141cc-0065-0410-87d8-b60c137991c4
This commit is contained in:
Hugues Malphettes 2011-05-09 03:34:08 +00:00
parent 1f5933f89b
commit c4c9e13504
1 changed files with 13 additions and 0 deletions

View File

@ -494,6 +494,19 @@ public class Dump extends HttpServlet
}
}
if ("true".equals(request.getParameter("env")))
{
pout.write("</tr><tr>\n");
pout.write("<th align=\"left\" colspan=\"2\"><big><br/>Environment&nbsp;System-Properties:&nbsp;</big></th>");
for (Entry<Object, Object> e : System.getProperties().entrySet())
{
pout.write("</tr><tr>\n");
pout.write("<th align=\"right\">" + notag(String.valueOf(e.getKey())) + ":&nbsp;</th>");
pout.write("<td>"+notag(String.valueOf(e.getValue()))+"</td>");
}
}
pout.write("</tr><tr>\n");
pout.write("<th align=\"left\" colspan=\"2\"><big><br/>Request Parameters:</big></th>");
h= request.getParameterNames();