Revision 30324 branches/v2_0_0_prep/libraries/libRemoteServices/src/org/gvsig/remoteclient/ogc/request/OGCRequest.java
OGCRequest.java | ||
---|---|---|
60 | 60 |
* @throws ConnectException |
61 | 61 |
*/ |
62 | 62 |
public File sendRequest() throws ConnectException, UnknownHostException, IOException{ |
63 |
if (status.getProtocol() != OGCClientOperation.PROTOCOL_UNDEFINED){ |
|
64 |
if (status.getProtocol() == OGCClientOperation.PROTOCOL_GET){ |
|
65 |
String onlineResource = protocolHandler.getHost(); |
|
66 |
String symbol = getSymbol(onlineResource); |
|
67 |
onlineResource = onlineResource + symbol; |
|
68 |
return sendHttpGetRequest(onlineResource); |
|
69 |
}else{ |
|
70 |
String onlineResource = protocolHandler.getHost(); |
|
71 |
return sendHttpPostRequest(onlineResource); |
|
63 |
//if the status is null is because is a GetCapabilities operation |
|
64 |
if (status != null){ |
|
65 |
if (status.getProtocol() != OGCClientOperation.PROTOCOL_UNDEFINED){ |
|
66 |
if (status.getProtocol() == OGCClientOperation.PROTOCOL_GET){ |
|
67 |
String onlineResource = protocolHandler.getHost(); |
|
68 |
String symbol = getSymbol(onlineResource); |
|
69 |
onlineResource = onlineResource + symbol; |
|
70 |
return sendHttpGetRequest(onlineResource); |
|
71 |
}else{ |
|
72 |
String onlineResource = protocolHandler.getHost(); |
|
73 |
return sendHttpPostRequest(onlineResource); |
|
74 |
} |
|
72 | 75 |
} |
73 | 76 |
} |
77 |
|
|
74 | 78 |
//if exists an online resource for the GET operation |
75 | 79 |
String onlineResource = protocolHandler.getServiceInformation().getOnlineResource(getOperationName(), WFSOperation.PROTOCOL_GET); |
76 | 80 |
if (onlineResource != null){ |
Also available in: Unified diff