Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=43366
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Sun, 27 Apr 2008 17:59:02 +0000 (17:59 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Sun, 27 Apr 2008 17:59:02 +0000 (17:59 +0000)
Provide backwards compatibility for sessions command

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@651988 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/catalina/manager/ManagerServlet.java

index 0d2c403..9458b48 100644 (file)
@@ -101,6 +101,7 @@ import org.apache.tomcat.util.modeler.Registry;
  *     descriptions from the user database connected to the <code>users</code>
  *     resource reference.
  * <li><b>/serverinfo</b> - Display system OS and JVM properties.
+ * <li><b>/sessions</b> - Deprecated. Use expire.
  * <li><b>/expire?path=/xxx</b> - List session idle timeinformation about the
  *     web application attached to context path <code>/xxx</code> for this
  *     virtual host.</li>
@@ -368,6 +369,8 @@ public class ManagerServlet
             save(writer, path);
         } else if (command.equals("/serverinfo")) {
             serverinfo(writer);
+        } else if (command.equals("/sessions")) {
+            expireSessions(writer, path, request);
         } else if (command.equals("/expire")) {
             expireSessions(writer, path, request);
         } else if (command.equals("/start")) {