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]

Returns raw pointer to the command.

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.

Response* Action::get_response (  )  [inline]

Returns raw pointer to the response.

Returns:
raw pointer to the response

Reimplemented in AsnCheck, AsnCreate, AsnDelete, AsnInfo, AsnRenew, AsnTransfer, AsnUpdate, BrDomainCheck, BrDomainCreate, BrDomainInfo, BrDomainRenew, BrDomainUpdate, BrOrgCheck, BrOrgInfo, ContactCheck, ContactCreate, ContactInfo, DomainCheck, DomainCreate, DomainDelete, DomainInfo, DomainRenew, IpNetworkCheck, IpNetworkCreate, IpNetworkDelete, IpNetworkInfo, IpNetworkRenew, IpNetworkTransfer, IpNetworkUpdate, and Poll.

string Action::get_xml (  )  [inline]

Returns XML.

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

Sets the xml template and parses the tags (pure virtual).

Parameters:
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).

Parameters:
xml_template XML template

ActionType Action::who_am_i (  )  [inline]

Returns Action type.

Returns:
Action type


The documentation for this class was generated from the following file:
Generated on Tue Mar 17 16:03:07 2009 for libepp_nicbr by  doxygen 1.4.7