servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r387167 - /incubator/servicemix/trunk/servicemix-http/src/main/java/org/apache/servicemix/http/ServerManager.java
Date Mon, 20 Mar 2006 09:06:10 GMT
Author: gnodet
Date: Mon Mar 20 01:06:07 2006
New Revision: 387167

URL: http://svn.apache.org/viewcvs?rev=387167&view=rev
Log:
Remove unnecessary '/' from the url when browsing services

Modified:
    incubator/servicemix/trunk/servicemix-http/src/main/java/org/apache/servicemix/http/ServerManager.java

Modified: incubator/servicemix/trunk/servicemix-http/src/main/java/org/apache/servicemix/http/ServerManager.java
URL: http://svn.apache.org/viewcvs/incubator/servicemix/trunk/servicemix-http/src/main/java/org/apache/servicemix/http/ServerManager.java?rev=387167&r1=387166&r2=387167&view=diff
==============================================================================
--- incubator/servicemix/trunk/servicemix-http/src/main/java/org/apache/servicemix/http/ServerManager.java
(original)
+++ incubator/servicemix/trunk/servicemix-http/src/main/java/org/apache/servicemix/http/ServerManager.java
Mon Mar 20 01:06:07 2006
@@ -241,8 +241,14 @@
                     ContextHandler context = (ContextHandler)handlers[i];
                         writer.write("<li><a href=\"");
                         writer.write(serverUri);
+                        if (!context.getContextPath().startsWith("/")) {
+                            writer.write("/");
+                        }
                         writer.write(context.getContextPath());
-                        writer.write("/?wsdl\">");
+                        if (!context.getContextPath().endsWith("/")) {
+                            writer.write("/");
+                        }
+                        writer.write("?wsdl\">");
                         writer.write(serverUri);
                         writer.write(context.getContextPath());
                         writer.write("</a></li>\n");



Mime
View raw message