|
xrpld
|

Public Member Functions | |
| RPCParser (unsigned apiVersion, beast::Journal j) | |
| json::Value | parseCommand (std::string_view strMethod, json::Value const &jvParams, bool allowAnyCommand) |
Static Public Member Functions | |
| static std::span< std::string_view const > | methodNames () |
| Names of every method the command line accepts. | |
| static constexpr bool | commandsValid () |
| Whether the command table is well formed. | |
Private Types | |
| using | ParseFuncPtr = json::Value (RPCParser::*)(json::Value const& jvParams) |
Static Private Member Functions | |
| static bool | jvParseLedger (json::Value &jvRequest, std::string const &strLedger) |
| static json::Value | jvParseCurrencyIssuer (std::string const &strCurrencyIssuer) |
| static bool | validPublicKey (std::string const &strPk, TokenType type=TokenType::AccountPublic) |
Private Attributes | |
| unsigned const | apiVersion_ |
| beast::Journal const | j_ |
Static Private Attributes | |
| static constexpr auto | kCommandArray |
| static constexpr auto | kSortedCommands |
| static constexpr auto | kCommandNames |
Definition at line 170 of file RPCCall.cpp.
|
private |
Definition at line 249 of file RPCCall.cpp.
|
explicit |
Definition at line 1753 of file RPCCall.cpp.
|
staticprivate |
Definition at line 179 of file RPCCall.cpp.
|
staticprivate |
Definition at line 200 of file RPCCall.cpp.
|
staticprivate |
Definition at line 233 of file RPCCall.cpp.
|
private |
Definition at line 253 of file RPCCall.cpp.
|
private |
Definition at line 265 of file RPCCall.cpp.
|
private |
Definition at line 282 of file RPCCall.cpp.
|
private |
Definition at line 303 of file RPCCall.cpp.
|
private |
Definition at line 318 of file RPCCall.cpp.
|
private |
Definition at line 394 of file RPCCall.cpp.
|
private |
Definition at line 461 of file RPCCall.cpp.
|
private |
Definition at line 484 of file RPCCall.cpp.
|
private |
Definition at line 513 of file RPCCall.cpp.
|
private |
Definition at line 536 of file RPCCall.cpp.
|
private |
Definition at line 544 of file RPCCall.cpp.
|
private |
Definition at line 578 of file RPCCall.cpp.
|
private |
Definition at line 592 of file RPCCall.cpp.
|
private |
Definition at line 620 of file RPCCall.cpp.
|
private |
Reports whether jv is a request this client accepts as JSON-RPC 2.0: an object whose jsonrpc is rpc::kJsonRpcVersion and ripplerpc is rpc::kRippleRpcVersion2, carrying an id and a method, with params absent, null, an array or an object; or a non-empty array of such objects.
| jv | The parsed argument. |
Definition at line 652 of file RPCCall.cpp.
|
private |
Definition at line 678 of file RPCCall.cpp.
|
private |
Definition at line 730 of file RPCCall.cpp.
|
private |
Definition at line 760 of file RPCCall.cpp.
|
private |
Definition at line 781 of file RPCCall.cpp.
|
private |
Definition at line 799 of file RPCCall.cpp.
|
private |
Definition at line 820 of file RPCCall.cpp.
|
private |
Definition at line 826 of file RPCCall.cpp.
|
private |
Definition at line 833 of file RPCCall.cpp.
|
private |
Definition at line 840 of file RPCCall.cpp.
|
private |
Definition at line 848 of file RPCCall.cpp.
|
private |
Definition at line 892 of file RPCCall.cpp.
|
private |
Definition at line 921 of file RPCCall.cpp.
|
private |
Definition at line 963 of file RPCCall.cpp.
|
private |
Definition at line 984 of file RPCCall.cpp.
|
private |
Definition at line 1003 of file RPCCall.cpp.
|
private |
Definition at line 1017 of file RPCCall.cpp.
|
private |
Definition at line 1026 of file RPCCall.cpp.
|
private |
Definition at line 1053 of file RPCCall.cpp.
|
private |
Definition at line 1085 of file RPCCall.cpp.
|
private |
Definition at line 1135 of file RPCCall.cpp.
|
private |
Definition at line 1155 of file RPCCall.cpp.
|
private |
Definition at line 1181 of file RPCCall.cpp.
|
private |
Definition at line 1214 of file RPCCall.cpp.
|
private |
Definition at line 1231 of file RPCCall.cpp.
|
private |
Definition at line 1246 of file RPCCall.cpp.
|
private |
Definition at line 1262 of file RPCCall.cpp.
|
private |
Definition at line 1305 of file RPCCall.cpp.
|
private |
Definition at line 1320 of file RPCCall.cpp.
|
static |
Names of every method the command line accepts.
Definition at line 1717 of file RPCCall.cpp.
|
staticconstexpr |
Whether the command table is well formed.
A name must select exactly one command, and must name a method the server can dispatch, or the command line would accept a command it cannot answer. RPCCall_test checks the second property, because it can see the handler table. This checks the first, and the parameter range.
The parser is not checked: Parse has no default constructor, so an entry that omits it does not compile.
This is a function the static_assert below the class calls, rather than the assert itself, because the table names members of RPCParser, and that is only a constant expression once RPCParser is complete.
Definition at line 1738 of file RPCCall.cpp.
| json::Value xrpl::RPCParser::parseCommand | ( | std::string_view | strMethod, |
| json::Value const & | jvParams, | ||
| bool | allowAnyCommand ) |
Definition at line 1762 of file RPCCall.cpp.
|
private |
Definition at line 173 of file RPCCall.cpp.
|
private |
Definition at line 174 of file RPCCall.cpp.
|
staticconstexprprivate |
Definition at line 1333 of file RPCCall.cpp.
|
staticconstexprprivate |
Definition at line 1693 of file RPCCall.cpp.
|
staticconstexprprivate |
Definition at line 1706 of file RPCCall.cpp.