Temp fix for compilation issue, need to check what caused it

This commit is contained in:
amoghvk 2014-08-28 17:47:08 -07:00
parent bea73e511e
commit b693e61fe6

View File

@ -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) {