base class of NFD ControlCommand More...
#include <nfd-control-command.hpp>
Data Structures | |
class | ArgumentError |
represents an error in ControlParameters More... | |
class | FieldValidator |
Public Member Functions | |
const Name & | getPrefix () const |
Interest | makeCommandInterest (const ControlParameters ¶meters, CommandInterestGenerator &commandInterestGenerator) const |
make a Command Interest from parameters More... | |
virtual void | validateRequest (const ControlParameters ¶meters) const |
validate request parameters More... | |
virtual void | applyDefaultsToRequest (ControlParameters ¶meters) const |
apply default values to missing fields in request More... | |
virtual void | validateResponse (const ControlParameters ¶meters) const |
validate response parameters More... | |
virtual void | applyDefaultsToResponse (ControlParameters ¶meters) const |
apply default values to missing fields in response More... | |
Protected Member Functions | |
ControlCommand (const std::string &module, const std::string &verb) | |
Protected Attributes | |
FieldValidator | m_requestValidator |
FieldValidator for request ControlParameters. More... | |
FieldValidator | m_responseValidator |
FieldValidator for response ControlParameters. More... | |
base class of NFD ControlCommand
Definition at line 19 of file nfd-control-command.hpp.
|
inlineprotected |
Definition at line 90 of file nfd-control-command.hpp.
|
inlinevirtual |
apply default values to missing fields in request
Reimplemented in ndn::nfd::RibUnregisterCommand, ndn::nfd::RibRegisterCommand, and ndn::nfd::FibAddNextHopCommand.
Definition at line 69 of file nfd-control-command.hpp.
|
inlinevirtual |
apply default values to missing fields in response
Definition at line 85 of file nfd-control-command.hpp.
|
inline |
Definition at line 37 of file nfd-control-command.hpp.
|
inline |
make a Command Interest from parameters
Definition at line 45 of file nfd-control-command.hpp.
|
inlinevirtual |
validate request parameters
ArgumentError |
Reimplemented in ndn::nfd::StrategyChoiceUnsetCommand, ndn::nfd::FaceLocalControlCommand, and ndn::nfd::FaceDestroyCommand.
Definition at line 61 of file nfd-control-command.hpp.
|
inlinevirtual |
validate response parameters
ArgumentError |
Reimplemented in ndn::nfd::RibUnregisterCommand, ndn::nfd::RibRegisterCommand, ndn::nfd::StrategyChoiceUnsetCommand, ndn::nfd::FibRemoveNextHopCommand, ndn::nfd::FibAddNextHopCommand, ndn::nfd::FaceLocalControlCommand, ndn::nfd::FaceDestroyCommand, and ndn::nfd::FaceCreateCommand.
Definition at line 77 of file nfd-control-command.hpp.
|
protected |
FieldValidator for request ControlParameters.
Constructor of subclass should populate this validator.
Definition at line 155 of file nfd-control-command.hpp.
|
protected |
FieldValidator for response ControlParameters.
Constructor of subclass should populate this validator.
Definition at line 160 of file nfd-control-command.hpp.