String strHostName = objCO.getHost().Value();
int intPortNo = objCO.getPort().value();
this.setSshConnection(new Connection(strHostName, intPortNo));
if (objCO.getProxy_host().IsNotEmpty()) {
HTTPProxyData objProxy = null;
if (objCO.getProxy_user().IsEmpty()) {
objProxy = new HTTPProxyData(objCO.getProxy_host().Value(), objCO.getProxy_port().value());
}
else {
objProxy = new HTTPProxyData(objCO.getProxy_host().Value(), objCO.getProxy_port().value(), objCO.getProxy_user().Value(),
objCO.getProxy_password().Value());
}
this.getSshConnection().setProxyData(objProxy);
}
this.getSshConnection().connect();