Revision 2954 trunk/libraries/libWMSv0/src/com/iver/wmsclient/wms_1_1_0/WMS_1_1_0.java

View differences:

WMS_1_1_0.java
102 102

  
103 103
            String hostString = host.toString();
104 104

  
105
            if (hostString.indexOf("?") == -1)
105
            /* if (hostString.indexOf("?") == -1)
106 106
            {
107 107
                // Viene sin el interrogante
108 108
                hostString += "?";
......
112 112
                if (!hostString.endsWith("?")) {
113 113
                    hostString += "&";
114 114
                }
115
            }
115
            } */
116
            hostString = WMSUtilities.checkHostString(hostString);
116 117

  
117 118
            String request = getQueryHeader() + "SERVICE=WMS&request=GetCapabilities";
118 119

  
......
152 153
            DCPType[] DCPs = root.getCapability().getRequest().getGetMap()
153 154
                                 .getDCPType();
154 155
            mapURLs = new String[DCPs.length];
155

  
156
            String aux;
156 157
            for (int i = 0; i < DCPs.length; i++) {
157
                mapURLs[i] = DCPs[i].getHTTP().getGet().getOnlineResource()
158
                aux = DCPs[i].getHTTP().getGet().getOnlineResource()
158 159
                                    .getHref();
159

  
160
                mapURLs[i] = WMSUtilities.checkHostString(aux);
160 161
                /* if (!mapURLs[i].endsWith("?")) {
161 162
                    mapURLs[i] = mapURLs[i] + "?";
162 163
                } */

Also available in: Unified diff