mirror of https://github.com/apache/cloudstack.git
Temp fix for compilation issue, need to check what caused it
This commit is contained in:
parent
bea73e511e
commit
b693e61fe6
|
|
@ -1228,15 +1228,15 @@ public class CiscoVnmcConnectionImpl implements CiscoVnmcConnection {
|
|||
}
|
||||
|
||||
private String sendRequest(String service, String xmlRequest) throws ExecutionException {
|
||||
org.apache.commons.httpclient.protocol.Protocol myhttps = new org.apache.commons.httpclient.protocol.Protocol("https", new EasySSLProtocolSocketFactory(), 443);
|
||||
org.apache.commons.httpclient.protocol.Protocol myhttps = null;
|
||||
HttpClient client = new HttpClient();
|
||||
client.getHostConfiguration().setHost(_ip, 443, myhttps);
|
||||
byte[] response = null;
|
||||
PostMethod method = new PostMethod("/xmlIM/" + service);
|
||||
|
||||
method.setRequestBody(xmlRequest);
|
||||
|
||||
try {
|
||||
myhttps = new org.apache.commons.httpclient.protocol.Protocol("https", new EasySSLProtocolSocketFactory(), 443);
|
||||
client.getHostConfiguration().setHost(_ip, 443, myhttps);
|
||||
int statusCode = client.executeMethod(method);
|
||||
|
||||
if (statusCode != HttpStatus.SC_OK) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue