Refactor away RPCHandler::doRpcCommand

This commit is contained in:
Tom Ritchford
2014-12-03 15:32:20 -05:00
committed by Vinnie Falco
parent fc9a23d6d4
commit c72db5fa5f
14 changed files with 304 additions and 155 deletions

View File

@@ -71,5 +71,23 @@ void Status::fillJson (Json::Value& value)
}
}
std::string Status::message() const {
std::string result;
for (auto& m: messages_)
{
if (!result.empty())
result += '/';
result += m;
}
return result;
}
std::string Status::toString() const {
if (*this)
return codeString() + ":" + message();
return "";
}
} // namespace RPC
} // ripple