comparison flys-artifacts/src/main/java/de/intevation/flys/utils/FLYSUtils.java @ 2296:d69d8dea78dc

Be more merciful for building the URL for the user-wms. flys-artifacts/trunk@3962 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Wed, 08 Feb 2012 10:54:23 +0000
parents 997df76c6f58
children 44dc117aa2b7
comparison
equal deleted inserted replaced
2295:504f53de1581 2296:d69d8dea78dc
637 * 637 *
638 * @return the URL of the user wms. 638 * @return the URL of the user wms.
639 */ 639 */
640 public static String getUserWMSUrl(String artifactId) { 640 public static String getUserWMSUrl(String artifactId) {
641 String url = getXPathString(XPATH_MAPSERVER_URL); 641 String url = getXPathString(XPATH_MAPSERVER_URL);
642 url = url + "user-wms"; 642 url = url.endsWith("/") ? url + "user-wms" : url + "/" + "user-wms";
643 643
644 return url; 644 return url;
645 } 645 }
646 646
647 647

http://dive4elements.wald.intevation.org