return Empty;
}
- if (!params)
- return Empty;
-
CheckResult::Ptr cr;
Array::Ptr vperf;
return Empty;
}
- if (!params)
- return Empty;
-
Host::Ptr host = Host::GetByName(params->Get("host"));
if (!host)
return Empty;
}
- if (!params)
- return Empty;
-
Notification::Ptr notification = Notification::GetByName(params->Get("notification"));
if (!notification)
return Empty;
}
- if (!params)
- return Empty;
-
Host::Ptr host = Host::GetByName(params->Get("host"));
if (!host)
return Empty;
}
- if (!params)
- return Empty;
-
Host::Ptr host = Host::GetByName(params->Get("host"));
if (!host)
return Empty;
}
- if (!params)
- return Empty;
-
Host::Ptr host = Host::GetByName(params->Get("host"));
if (!host)
return Empty;
}
- if (!params)
- return Empty;
-
Host::Ptr host = Host::GetByName(params->Get("host"));
if (!host)
return Empty;
}
- if (!params)
- return Empty;
-
Host::Ptr host = Host::GetByName(params->Get("host"));
if (!host)
return Empty;
}
- if (!params)
- return Empty;
-
Host::Ptr host = Host::GetByName(params->Get("host"));
if (!host)
return Empty;
}
- if (!params)
- return Empty;
-
Host::Ptr host = Host::GetByName(params->Get("host"));
if (!host)
Value RequestCertificateHandler(const MessageOrigin::Ptr& origin, const Dictionary::Ptr& params)
{
- if (!params)
- return Empty;
-
String certText = params->Get("cert_request");
boost::shared_ptr<X509> cert;
Log(LogNotice, "JsonRpcConnection")
<< "Call to non-existent function '" << method << "' from endpoint '" << m_Identity << "'.";
} else {
- resultMessage->Set("result", afunc->Invoke(origin, message->Get("params")));
+ Dictionary::Ptr params = message->Get("params");
+ if (params)
+ resultMessage->Set("result", afunc->Invoke(origin, params));
+ else
+ resultMessage->Set("result", Empty);
}
} catch (const std::exception& ex) {
/* TODO: Add a user readable error message for the remote caller */
Value SetLogPositionHandler(const MessageOrigin::Ptr& origin, const Dictionary::Ptr& params)
{
- if (!params)
- return Empty;
-
double log_position = params->Get("log_position");
Endpoint::Ptr endpoint = origin->FromClient->GetEndpoint();