#include <Action.H>
Public Member Functions | |
virtual | ~Action () |
virtual destructor | |
virtual void | set_xml_template (const string &xml_template)=0 |
Sets the xml template and parses the tags (pure virtual). | |
string | get_xml () |
Returns XML. | |
ActionType | who_am_i () |
Returns Action type. | |
virtual void | set_response (const string &xml_payload, DomParser *parser)=0 |
Pure virtual method to set response from a XML document. | |
Response * | get_response () |
Returns raw pointer to the response. | |
Command * | get_command () |
Returns raw pointer to the command. | |
Protected Member Functions | |
Action (const ActionType &type) | |
Constructor that forces childs to set their types. | |
void | set_xml_template_common (const string &xml_template) |
Sets the xml template and parses the tags (protected). | |
Protected Attributes | |
auto_ptr< Command > | _command |
Generic command. | |
auto_ptr< Response > | _response |
Generic response. | |
ActionType | _type |
Action type. | |
string | _xml |
XML command. |
Action::Action | ( | const ActionType & | type | ) | [inline, protected] |
Command* Action::get_command | ( | ) | [inline] |
Returns raw pointer to the command.
Reimplemented in AsnCheck, AsnCreate, AsnDelete, AsnInfo, AsnRenew, AsnTransfer, AsnUpdate, BrDomainCheck, BrDomainCreate, BrDomainInfo, BrDomainRenew, BrDomainUpdate, BrOrgCheck, BrOrgCreate, BrOrgInfo, BrOrgUpdate, ContactCheck, ContactCreate, ContactInfo, ContactUpdate, DomainCheck, DomainCreate, DomainDelete, DomainInfo, DomainRenew, DomainUpdate, IpNetworkCheck, IpNetworkCreate, IpNetworkDelete, IpNetworkInfo, IpNetworkRenew, IpNetworkTransfer, IpNetworkUpdate, Login, and Poll.
References _command.
Response* Action::get_response | ( | ) | [inline] |
Returns raw pointer to the response.
Reimplemented in AsnCheck, AsnCreate, AsnDelete, AsnInfo, AsnRenew, AsnTransfer, AsnUpdate, BrDomainCheck, BrDomainCreate, BrDomainInfo, BrDomainRenew, BrDomainUpdate, BrOrgCheck, BrOrgCreate, BrOrgInfo, ContactCheck, ContactCreate, ContactInfo, DomainCheck, DomainCreate, DomainDelete, DomainInfo, DomainRenew, IpNetworkCheck, IpNetworkCreate, IpNetworkDelete, IpNetworkInfo, IpNetworkRenew, IpNetworkTransfer, IpNetworkUpdate, and Poll.
References _response.
Referenced by Logout::set_response(), Login::set_response(), DomainUpdate::set_response(), and ContactUpdate::set_response().
string Action::get_xml | ( | ) | [inline] |
virtual void Action::set_response | ( | const string & | xml_payload, | |
DomParser * | parser | |||
) | [pure virtual] |
Pure virtual method to set response from a XML document.
xml_payload | XML document | |
parser | reference to the XML parser |
Implemented in AsnCheck, AsnCreate, AsnDelete, AsnInfo, AsnRenew, AsnTransfer, AsnUpdate, ContactCheck, ContactCreate, ContactInfo, ContactUpdate, DomainCheck, DomainCreate, DomainDelete, DomainInfo, DomainRenew, DomainUpdate, IpNetworkCheck, IpNetworkCreate, IpNetworkDelete, IpNetworkInfo, IpNetworkRenew, IpNetworkTransfer, IpNetworkUpdate, Login, Logout, and Poll.
virtual void Action::set_xml_template | ( | const string & | xml_template | ) | [pure virtual] |
Sets the xml template and parses the tags (pure virtual).
xml_template | XML template |
Implemented in AsnCheck, AsnCreate, AsnDelete, AsnInfo, AsnRenew, AsnTransfer, AsnUpdate, BrDomainCheck, BrDomainCreate, BrDomainInfo, BrDomainUpdate, BrOrgCheck, BrOrgCreate, BrOrgInfo, BrOrgUpdate, ContactCheck, ContactCreate, ContactInfo, ContactUpdate, DomainCheck, DomainCreate, DomainDelete, DomainInfo, DomainRenew, DomainUpdate, IpNetworkCheck, IpNetworkCreate, IpNetworkDelete, IpNetworkInfo, IpNetworkRenew, IpNetworkTransfer, IpNetworkUpdate, Login, Logout, and Poll.
void Action::set_xml_template_common | ( | const string & | xml_template | ) | [inline, protected] |
Sets the xml template and parses the tags (protected).
xml_template | XML template |
References _command, _response, _xml, StrUtil::esc_xml_markup(), StrUtil::parse(), and StrUtil::to_string().
Referenced by Logout::set_xml_template().
ActionType Action::who_am_i | ( | ) | [inline] |