Action Class Reference

EPP Action Class. More...

#include <Action.H>

Inheritance diagram for Action:

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 Poll

List of all members.

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.
Responseget_response ()
 Returns raw pointer to the response.
Commandget_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.


Detailed Description

EPP Action Class.

Constructor & Destructor Documentation

Action::Action ( const ActionType type  )  [inline, protected]

Constructor that forces childs to set their types.

Parameters:
type Action type


Member Function Documentation

Command* Action::get_command (  )  [inline]

Response* Action::get_response (  )  [inline]

string Action::get_xml (  )  [inline]

Returns XML.

Returns:
XML

References _xml.

virtual void Action::set_response ( const string &  xml_payload,
DomParser parser 
) [pure virtual]

Pure virtual method to set response from a XML document.

Parameters:
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]

void Action::set_xml_template_common ( const string &  xml_template  )  [inline, protected]

Sets the xml template and parses the tags (protected).

Parameters:
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]

Returns Action type.

Returns:
Action type

References _type.


The documentation for this class was generated from the following file:

Generated on Thu Jan 21 14:44:03 2010 for libepp_nicbr by  doxygen 1.5.9