You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by gn...@apache.org on 2006/03/20 10:06:10 UTC
svn commit: r387167 -
/incubator/servicemix/trunk/servicemix-http/src/main/java/org/apache/servicemix/http/ServerManager.java
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");