Revision 34132 branches/v2_0_0_prep/libraries/libRemoteServices/src/org/gvsig/remoteclient/ogc/request/OGCRequest.java
OGCRequest.java | ||
---|---|---|
34 | 34 |
import java.net.URL; |
35 | 35 |
import java.net.UnknownHostException; |
36 | 36 |
|
37 |
import org.gvsig.compat.CompatLocator; |
|
38 |
import org.gvsig.compat.lang.StringUtils; |
|
37 | 39 |
import org.gvsig.compat.net.ICancellable; |
38 | 40 |
import org.gvsig.remoteclient.RemoteClientStatus; |
39 | 41 |
import org.gvsig.remoteclient.ogc.OGCClientOperation; |
... | ... | |
48 | 50 |
protected static final String XMLTAG_STARTCHARACTER = "<"; |
49 | 51 |
protected static final String XMLTAG_FINISHCHARACTER = "</"; |
50 | 52 |
protected static final String XMLTAG_ENDCHARACTER = ">"; |
53 |
|
|
54 |
private static final StringUtils stringUtils = CompatLocator.getStringUtils(); |
|
51 | 55 |
|
52 | 56 |
public OGCRequest(RemoteClientStatus status, OGCProtocolHandler protocolHandler) { |
53 | 57 |
super(); |
... | ... | |
131 | 135 |
* @throws IOException |
132 | 136 |
*/ |
133 | 137 |
private File sendHttpGetRequest(String onlineResource, ICancellable cancel) throws ConnectException, UnknownHostException, IOException{ |
134 |
URL url = new URL(getHttpGetRequest(onlineResource));
|
|
138 |
URL url = new URL(stringUtils.replaceAll(getHttpGetRequest(onlineResource), " ", "%20"));
|
|
135 | 139 |
if (isDeleted()){ |
136 | 140 |
Utilities.removeURL(url); |
137 | 141 |
} |
Also available in: Unified diff