Revision 33738 branches/v2_0_0_prep/libraries/libRemoteServices/src/org/gvsig/remoteclient/wms/wms_1_1_0/request/WMSGetMapRequest1_1_0.java
WMSGetMapRequest1_1_0.java | ||
---|---|---|
27 | 27 |
|
28 | 28 |
package org.gvsig.remoteclient.wms.wms_1_1_0.request; |
29 | 29 |
|
30 |
import org.gvsig.compat.CompatLocator; |
|
31 |
import org.gvsig.compat.lang.StringUtils; |
|
30 | 32 |
import org.gvsig.remoteclient.utils.CapabilitiesTags; |
31 | 33 |
import org.gvsig.remoteclient.wms.WMSProtocolHandler; |
32 | 34 |
import org.gvsig.remoteclient.wms.WMSStatus; |
... | ... | |
36 | 38 |
* @author <a href="mailto:jpiera@gvsig.org">Jorge Piera</a> |
37 | 39 |
*/ |
38 | 40 |
public class WMSGetMapRequest1_1_0 extends WMSGetMapRequest{ |
39 |
|
|
41 |
|
|
42 |
private static final StringUtils stringUtils = CompatLocator.getStringUtils(); |
|
43 |
|
|
40 | 44 |
public WMSGetMapRequest1_1_0(WMSStatus status, |
41 | 45 |
WMSProtocolHandler protocolHandler) { |
42 | 46 |
super(status, protocolHandler); |
... | ... | |
52 | 56 |
req.append("REQUEST=GetMap&SERVICE=WMS&VERSION=").append(protocolHandler.getVersion()).append("&"); |
53 | 57 |
req.append(getPartialQuery(status)); |
54 | 58 |
req.append("&EXCEPTIONS=" + getExceptionsFormat()); |
55 |
return req.toString().replaceAll(" ", "%20");
|
|
59 |
return stringUtils.replaceAll(req.toString(), " ", "%20");
|
|
56 | 60 |
} |
57 | 61 |
|
58 | 62 |
/** |
Also available in: Unified diff