libepp_nicbr
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Action Class Referenceabstract

EPP Action Class. More...

#include <Action.H>

Inheritance diagram for Action:
AsnCheck AsnCreate AsnDelete AsnInfo AsnRenew AsnReserveCreate AsnReserveDelete AsnTransfer AsnUpdate ContactCheck ContactCreate ContactDelete ContactInfo ContactTransfer ContactUpdate DefRegCheck DefRegCreate DefRegDelete DefRegInfo DefRegRenew DefRegTransfer DefRegUpdate DomainCheck DomainCreate DomainDelete DomainInfo DomainRenew DomainTransfer DomainUpdate IpNetworkCheck IpNetworkCreate IpNetworkDelete IpNetworkInfo IpNetworkRenew IpNetworkTransfer IpNetworkUpdate Login Logout Poll

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) More...
 
string get_xml ()
 Returns XML. More...
 
ActionType who_am_i ()
 Returns Action type. More...
 
virtual void set_response (const string &xml_payload, DomParser *parser)=0
 Pure virtual method to set response from a XML document. More...
 
Responseget_response ()
 Returns raw pointer to the response. More...
 
Commandget_command ()
 Returns raw pointer to the command. More...
 

Protected Member Functions

 Action (const ActionType &type)
 Constructor that forces childs to set their types. More...
 
void set_xml_template_common (const string &xml_template)
 Sets the xml template and parses the tags (protected) More...
 

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)
inlineprotected

Constructor that forces childs to set their types.

Parameters
typeAction type

Member Function Documentation

Command* Action::get_command ( )
inline

Returns raw pointer to the command.

Returns
raw pointer to the command

References _command.

Response* Action::get_response ( )
inline

Returns raw pointer to the response.

Returns
raw pointer to the response

References _response.

Referenced by Logout::set_response(), ContactDelete::set_response(), Login::set_response(), and ContactUpdate::set_response().

string Action::get_xml ( )
inline

Returns XML.

Returns
XML

References _xml.

virtual void Action::set_response ( const string &  xml_payload,
DomParser parser 
)
pure virtual
virtual void Action::set_xml_template ( const string &  xml_template)
pure virtual
void Action::set_xml_template_common ( const string &  xml_template)
inlineprotected

Sets the xml template and parses the tags (protected)

Parameters
xml_templateXML template

References 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: