servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r526090 - /incubator/servicemix/branches/servicemix-3.1/deployables/bindingcomponents/servicemix-http/src/main/java/org/apache/servicemix/http/jetty/JettyContextManager.java
Date Fri, 06 Apr 2007 08:19:50 GMT
Author: gnodet
Date: Fri Apr  6 01:19:49 2007
New Revision: 526090

URL: http://svn.apache.org/viewvc?view=rev&rev=526090
Log:
SM-922: When browsing for available services, existing urls should end with a '/' when displayed

Modified:
    incubator/servicemix/branches/servicemix-3.1/deployables/bindingcomponents/servicemix-http/src/main/java/org/apache/servicemix/http/jetty/JettyContextManager.java

Modified: incubator/servicemix/branches/servicemix-3.1/deployables/bindingcomponents/servicemix-http/src/main/java/org/apache/servicemix/http/jetty/JettyContextManager.java
URL: http://svn.apache.org/viewvc/incubator/servicemix/branches/servicemix-3.1/deployables/bindingcomponents/servicemix-http/src/main/java/org/apache/servicemix/http/jetty/JettyContextManager.java?view=diff&rev=526090&r1=526089&r2=526090
==============================================================================
--- incubator/servicemix/branches/servicemix-3.1/deployables/bindingcomponents/servicemix-http/src/main/java/org/apache/servicemix/http/jetty/JettyContextManager.java
(original)
+++ incubator/servicemix/branches/servicemix-3.1/deployables/bindingcomponents/servicemix-http/src/main/java/org/apache/servicemix/http/jetty/JettyContextManager.java
Fri Apr  6 01:19:49 2007
@@ -397,24 +397,24 @@
                         continue;
                     }
                     ContextHandler context = (ContextHandler) handlers[i];
+                    StringBuffer sb = new StringBuffer();
+                    sb.append(serverUri);
+                    if (!context.getContextPath().startsWith("/")) {
+                        sb.append("/");
+                    }
+                    sb.append(context.getContextPath());
+                    if (!context.getContextPath().endsWith("/")) {
+                        sb.append("/");
+                    }
                     if (context.isStarted()) {
                         writer.write("<li><a href=\"");
-                        writer.write(serverUri);
-                        if (!context.getContextPath().startsWith("/")) {
-                            writer.write("/");
-                        }
-                        writer.write(context.getContextPath());
-                        if (!context.getContextPath().endsWith("/")) {
-                            writer.write("/");
-                        }
+                        writer.write(sb.toString());
                         writer.write("?wsdl\">");
-                        writer.write(serverUri);
-                        writer.write(context.getContextPath());
+                        writer.write(sb.toString());
                         writer.write("</a></li>\n");
                     } else {
                         writer.write("<li>");
-                        writer.write(serverUri);
-                        writer.write(context.getContextPath());
+                        writer.write(sb.toString());
                         writer.write(" [Stopped]</li>\n");
                     }
                 }



Mime
View raw message