xrpld
Loading...
Searching...
No Matches
xrpl::rpc::DepositAuthorizedHandler Class Reference

Handles the deposit_authorized RPC method. More...

#include <DepositAuthorized.h>

Inheritance diagram for xrpl::rpc::DepositAuthorizedHandler:
Collaboration diagram for xrpl::rpc::DepositAuthorizedHandler:

Classes

struct  Output
 The data a deposit_authorized request produces, written out by writeResult(). More...

Public Member Functions

 DepositAuthorizedHandler (JsonContext &context)
 Construct a handler for a single request.
std::expected< Output, ::rpc::Status > process (Input const &input) const
 Process the request.
void writeResult (json::Value &value, Output const &output) const
 Write the output of process() into the response.

Private Attributes

std::reference_wrapper< JsonContext > context_

Detailed Description

Handles the deposit_authorized RPC method.

The request is parsed by ::rpc::spec::handlers::deposit_authorized.

Definition at line 24 of file DepositAuthorized.h.

Constructor & Destructor Documentation

◆ DepositAuthorizedHandler()

xrpl::rpc::DepositAuthorizedHandler::DepositAuthorizedHandler ( JsonContext & context)
explicit

Construct a handler for a single request.

Parameters
contextThe context of the request being handled.

Definition at line 28 of file DepositAuthorized.cpp.

Member Function Documentation

◆ process()

std::expected< DepositAuthorizedHandler::Output,::rpc::Status > xrpl::rpc::DepositAuthorizedHandler::process ( Input const & input) const
nodiscard

Process the request.

Parameters
inputThe request, parsed and validated by the spec.
Returns
The output to write, or the status of the error.

Definition at line 33 of file DepositAuthorized.cpp.

◆ writeResult()

void xrpl::rpc::DepositAuthorizedHandler::writeResult ( json::Value & value,
Output const & output ) const

Write the output of process() into the response.

Parameters
valueThe response to write into.
outputThe output process() returned.

Definition at line 124 of file DepositAuthorized.cpp.

Member Data Documentation

◆ context_

std::reference_wrapper<JsonContext> xrpl::rpc::DepositAuthorizedHandler::context_
private

Definition at line 63 of file DepositAuthorized.h.