tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r898456 - in /tomcat/trunk/java/org/apache/catalina/manager/host: HostManagerServlet.java LocalStrings.properties
Date Tue, 12 Jan 2010 18:23:28 GMT
Author: markt
Date: Tue Jan 12 18:23:27 2010
New Revision: 898456

URL: http://svn.apache.org/viewvc?rev=898456&view=rev
Log:
Use string manager for log messages

Modified:
    tomcat/trunk/java/org/apache/catalina/manager/host/HostManagerServlet.java
    tomcat/trunk/java/org/apache/catalina/manager/host/LocalStrings.properties

Modified: tomcat/trunk/java/org/apache/catalina/manager/host/HostManagerServlet.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/manager/host/HostManagerServlet.java?rev=898456&r1=898455&r2=898456&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/manager/host/HostManagerServlet.java (original)
+++ tomcat/trunk/java/org/apache/catalina/manager/host/HostManagerServlet.java Tue Jan 12
18:23:27 2010
@@ -346,7 +346,7 @@
          boolean xmlNamespaceAware,
          boolean xmlValidation) {
         if (debug >= 1) {
-            log("add: Adding host '" + name + "'");
+            log(sm.getString("hostManagerServlet.add", name));
         }
 
         // Validate the requested host name
@@ -470,7 +470,7 @@
     protected synchronized void remove(PrintWriter writer, String name) {
 
         if (debug >= 1) {
-            log("remove: Removing host '" + name + "'");
+            log(sm.getString("hostManagerServlet.remove", name));
         }
 
         // Validate the requested host name
@@ -523,9 +523,9 @@
      */
     protected void list(PrintWriter writer) {
 
-        if (debug >= 1)
-            log("list: Listing hosts for engine '" 
-                + engine.getName() + "'");
+        if (debug >= 1) {
+            log(sm.getString("hostManagerServlet.list", engine.getName()));
+        }
 
         writer.println(sm.getString("hostManagerServlet.listed",
                                     engine.getName()));
@@ -555,8 +555,9 @@
      */
     protected void start(PrintWriter writer, String name) {
 
-        if (debug >= 1)
-            log("start: Starting host with name '" + name + "'");
+        if (debug >= 1) {
+            log(sm.getString("hostManagerServlet.start", name));
+        }
 
         // Validate the requested host name
         if ((name == null) || name.length() == 0) {
@@ -604,8 +605,9 @@
      */
     protected void stop(PrintWriter writer, String name) {
 
-        if (debug >= 1)
-            log("stop: Stopping host with name '" + name + "'");
+        if (debug >= 1) {
+            log(sm.getString("hostManagerServlet.stop", name));
+        }
 
         // Validate the requested host name
         if ((name == null) || name.length() == 0) {

Modified: tomcat/trunk/java/org/apache/catalina/manager/host/LocalStrings.properties
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/manager/host/LocalStrings.properties?rev=898456&r1=898455&r2=898456&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/catalina/manager/host/LocalStrings.properties (original)
+++ tomcat/trunk/java/org/apache/catalina/manager/host/LocalStrings.properties Tue Jan 12
18:23:27 2010
@@ -35,6 +35,11 @@
 hostManagerServlet.cannotStopOwnHost=FAIL - Cannot stop own host {0}
 hostManagerServlet.stopped=OK - Host {0} stopped
 hostManagerServlet.stopFailed=FAIL - Failed to stop host {0}
+hostManagerServlet.add=add: Adding host [{0}]
+hostManagerServlet.remove=remove: Removing host [{0}]
+hostManagerServlet.list=list: Listing hosts for engine [{0}]
+hostManagerServlet.start=start: Starting host with name [{0}]
+hostManagerServlet.stop=stop: Stopping host with name [{0}]
 
 htmlHostManagerServlet.title=Tomcat Virtual Host Manager
 htmlHostManagerServlet.messageLabel=Message:



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message