ndn-cxx: NDN C++ Library 0.9.0-33-g832ea91d
Loading...
Searching...
No Matches
ndn::nfd::RibRegisterCommand Class Reference

Represents a rib/register command. More...

#include <ndn-cxx/mgmt/nfd/control-command.hpp>

+ Inheritance diagram for ndn::nfd::RibRegisterCommand:
+ Collaboration diagram for ndn::nfd::RibRegisterCommand:

Public Types

using RequestFormat = ControlParametersCommandFormat
 
using RequestParameters = typename RequestFormat::ParametersType
 
using ResponseFormat = ControlParametersCommandFormat
 
using ResponseParameters = typename ResponseFormat::ParametersType
 

Static Public Member Functions

static void applyDefaultsToRequest (RequestParameters &params)
 Apply default values to missing fields in request.
 
static void applyDefaultsToResponse (ResponseParameters &params)
 Apply default values to missing fields in response.
 
static Interest createRequest (Name commandPrefix, const RequestParameters &params)
 Construct request Interest.
 
static PartialName getName ()
 Return the command name (module + verb).
 
static shared_ptr< mgmt::ControlParametersBaseparseRequest (const Interest &interest, size_t prefixLen)
 Extract parameters from request Interest.
 
static void validateRequest (const RequestParameters &params)
 Validate request parameters.
 
static void validateResponse (const ResponseParameters &params)
 Validate response parameters.
 

Static Public Attributes

static const ::ndn::name::Component module {std::string_view( "rib" )}
 
static const ::ndn::name::Component verb {std::string_view( "register" )}
 

Friends

class RibAnnounceCommand
 

Detailed Description

Represents a rib/register command.

See also
https://redmine.named-data.net/projects/nfd/wiki/RibMgmt#Register-a-route

Definition at line 428 of file control-command.hpp.

Member Typedef Documentation

◆ RequestFormat

◆ RequestParameters

◆ ResponseFormat

◆ ResponseParameters

Member Function Documentation

◆ applyDefaultsToRequest()

static void ndn::nfd::ControlCommand< RibRegisterCommand , ControlParametersCommandFormat , ControlParametersCommandFormat >::applyDefaultsToRequest ( RequestParameters params)
inlinestaticinherited

Apply default values to missing fields in request.

Definition at line 221 of file control-command.hpp.

◆ applyDefaultsToResponse()

static void ndn::nfd::ControlCommand< RibRegisterCommand , ControlParametersCommandFormat , ControlParametersCommandFormat >::applyDefaultsToResponse ( ResponseParameters params)
inlinestaticinherited

Apply default values to missing fields in response.

Definition at line 241 of file control-command.hpp.

◆ createRequest()

static Interest ndn::nfd::ControlCommand< RibRegisterCommand , ControlParametersCommandFormat , ControlParametersCommandFormat >::createRequest ( Name  commandPrefix,
const RequestParameters params 
)
inlinestaticinherited

Construct request Interest.

Exceptions
ArgumentErrorif parameters are invalid

Definition at line 187 of file control-command.hpp.

◆ getName()

Return the command name (module + verb).

Definition at line 177 of file control-command.hpp.

◆ parseRequest()

static shared_ptr< mgmt::ControlParametersBase > ndn::nfd::ControlCommand< RibRegisterCommand , ControlParametersCommandFormat , ControlParametersCommandFormat >::parseRequest ( const Interest interest,
size_t  prefixLen 
)
inlinestaticinherited

Extract parameters from request Interest.

Definition at line 200 of file control-command.hpp.

◆ validateRequest()

static void ndn::nfd::ControlCommand< RibRegisterCommand , ControlParametersCommandFormat , ControlParametersCommandFormat >::validateRequest ( const RequestParameters params)
inlinestaticinherited

Validate request parameters.

Exceptions
ArgumentErrorif parameters are invalid

Definition at line 211 of file control-command.hpp.

◆ validateResponse()

static void ndn::nfd::ControlCommand< RibRegisterCommand , ControlParametersCommandFormat , ControlParametersCommandFormat >::validateResponse ( const ResponseParameters params)
inlinestaticinherited

Validate response parameters.

Exceptions
ArgumentErrorif parameters are invalid

Definition at line 231 of file control-command.hpp.

Friends And Related Symbol Documentation

◆ RibAnnounceCommand

friend class RibAnnounceCommand
friend

Definition at line 431 of file control-command.hpp.

Member Data Documentation

◆ module

const ::ndn::name::Component ndn::nfd::RibRegisterCommand::module {std::string_view( "rib" )}
inlinestatic

Definition at line 430 of file control-command.hpp.

◆ verb

const ::ndn::name::Component ndn::nfd::RibRegisterCommand::verb {std::string_view( "register" )}
inlinestatic

Definition at line 430 of file control-command.hpp.