libepp_nicbr
Public Member Functions | Protected Member Functions | List of all members
DomParser Class Reference

EPP DomParser Class. More...

#include <DomParser.H>

Inheritance diagram for DomParser:
DomParserCommon

Public Member Functions

void parse_command (const string &xml_payload)
 Parse method to be used by the Unit Test to validate commands. More...
 
void parse_login_rsp (const string &xml_payload, Response *rsp)
 Parse the response to a login command. More...
 
void parse_logout_rsp (const string &xml_payload, Response *rsp)
 Parse the response to a logout command. More...
 
void parse_greeting (const string &xml_payload, Greeting *greeting)
 Parse the response to a connect or hello command. More...
 
void parse_contact_check_rsp (const string &xml_payload, ContactCheckRsp *rsp)
 Parse the response to a contact check command. More...
 
void parse_contact_create_rsp (const string &xml_payload, ContactCreateRsp *rsp)
 Parse the response to a contact create command. More...
 
void parse_contact_info_rsp (const string &xml_payload, ContactInfoRsp *rsp)
 Parse the response to a contact info command. More...
 
void parse_contact_transfer_rsp (const string &xml_payload, ContactTransferRsp *rsp)
 Parse the response to a contact transfer command. More...
 
void parse_contact_update_rsp (const string &xml_payload, Response *rsp)
 Parse the response to a contact update command. More...
 
void parse_contact_delete_rsp (const string &xml_payload, Response *rsp)
 Parse the response to a contact delete command. More...
 
void parse_domain_check_rsp (const string &xml_payload, DomainCheckRsp *rsp)
 Parse the response to a domain check command. More...
 
void parse_domain_create_rsp (const string &xml_payload, DomainCreateRsp *rsp)
 Parse the response to a domain create command. More...
 
void parse_domain_info_rsp (const string &xml_payload, DomainInfoRsp *rsp)
 Parse the response to a domain info command. More...
 
void parse_domain_transfer_rsp (const string &xml_payload, DomainTransferRsp *rsp)
 Parse the response to a domain transfer command. More...
 
void parse_domain_renew_rsp (const string &xml_payload, DomainRenewRsp *rsp)
 Parse the response to a domain renew command. More...
 
void parse_domain_update_rsp (const string &xml_payload, DomainUpdateRsp *rsp)
 Parse the response to a domain update command. More...
 
void parse_domain_delete_rsp (const string &xml_payload, Response *rsp)
 Parse the response to a domain delete command. More...
 
void parse_def_reg_check_rsp (const string &xml_payload, DefRegCheckRsp *rsp)
 Parse the response to a defensive registration check command. More...
 
void parse_def_reg_info_rsp (const string &xml_payload, DefRegInfoRsp *rsp)
 Parse the response to a defensive registration info command. More...
 
void parse_def_reg_transfer_rsp (const string &xml_payload, DefRegTransferRsp *rsp)
 Parse the response to a defensive registration transfer command. More...
 
void parse_def_reg_create_rsp (const string &xml_payload, DefRegCreateRsp *rsp)
 Parse the response to a defensive registration create command. More...
 
void parse_def_reg_delete_rsp (const string &xml_payload, Response *rsp)
 Parse the response to a defensive registration create command. More...
 
void parse_def_reg_renew_rsp (const string &xml_payload, DefRegRenewRsp *rsp)
 Parse the response to a defensive registration renew command. More...
 
void parse_def_reg_update_rsp (const string &xml_payload, Response *rsp)
 Parse the response to a defensive registration update command. More...
 
void parse_poll_rsp (const string &xml_payload, PollRsp *rsp)
 Parse the response to a poll command. More...
 
- Public Member Functions inherited from DomParserCommon
 DomParserCommon ()
 Constructor.
 
 ~DomParserCommon ()
 Destructor.
 
void enable_validation (const string &schemas_dir=SCHEMASDIR)
 Enable Validation. More...
 
void disable_validation ()
 Disable Validation.
 

Protected Member Functions

void parse_response (const string &xml_payload, Response *rsp)
 Parse the response. More...
 
void get_extValue_info (DOMNode *n, string &value, string &xmlns, string &reason)
 Gets data from an extValue element. More...
 
void fill_result (DOMNode *n, Response *rsp)
 Fills a result part of a Response object. More...
 
void fill_response (DOMNode *n, Response *rsp)
 Fills a Response object. More...
 
void fill_greeting (DOMNode *n, Greeting *greeting)
 Fills a Greeting object. More...
 
void fill_contact_check_rsp (DOMNode *n, ContactCheckRsp *rsp)
 Fills a Contact check response object. More...
 
void fill_contact_info_rsp (DOMNode *n, ContactInfoRsp *rsp)
 Fills a Contact info response object. More...
 
void fill_contact_transfer_rsp (DOMNode *n, ContactTransferRsp *rsp)
 Fills a Contact transfer response object. More...
 
void fill_contact_create_rsp (DOMNode *n, ContactCreateRsp *rsp)
 Fills a Contact create response object. More...
 
void fill_contact_pandata_rsp (DOMNode *n, PanDataRsp *rsp)
 Fills a Contact PanData response object. More...
 
void fill_lacnic_contact_info_rsp (DOMNode *n, ContactInfoRsp *rsp)
 Fills a Lacnic Contact info response object. More...
 
void fill_domain_check_rsp (DOMNode *n, DomainCheckRsp *rsp)
 Fills a Domain check response object. More...
 
void fill_domain_info_rsp (DOMNode *n, DomainInfoRsp *rsp)
 Fills a Domain info response object. More...
 
void fill_domain_transfer_rsp (DOMNode *n, DomainTransferRsp *rsp)
 Fills a Domain transfer response object. More...
 
void fill_domain_create_rsp (DOMNode *n, DomainCreateRsp *rsp)
 Fills a Domain create response object. More...
 
void fill_domain_renew_rsp (DOMNode *n, DomainRenewRsp *rsp)
 Fills a Domain renew response object. More...
 
void fill_domain_update_rsp (DOMNode *n, DomainUpdateRsp *rsp)
 Fills a Domain update response object. More...
 
void fill_domain_pandata_rsp (DOMNode *n, PanDataRsp *rsp)
 Fills a Domain PanData response object. More...
 
void fill_def_reg_check_rsp (DOMNode *n, DefRegCheckRsp *rsp)
 Fills a defensive registration check response object. More...
 
void fill_def_reg_info_rsp (DOMNode *n, DefRegInfoRsp *rsp)
 Fills a defensive registration info response object. More...
 
void fill_def_reg_transfer_rsp (DOMNode *n, DefRegTransferRsp *rsp)
 Fills a defensive registration transfer response object. More...
 
void fill_def_reg_create_rsp (DOMNode *n, DefRegCreateRsp *rsp)
 Fills a defensive registration create response object. More...
 
void fill_def_reg_renew_rsp (DOMNode *n, DefRegRenewRsp *rsp)
 Fills a defensive registration renew response object. More...
 
void fill_poll_rsp (DOMNode *n, PollRsp *poll_rsp)
 Fills a Poll response object. More...
 
void fill_launch_check_rsp (DOMNode *n, LaunchCheckRsp &launch)
 Fills a Launch check response object. More...
 
void fill_launch_info_rsp (DOMNode *n, LaunchInfoRsp &launch)
 Fills a Launch info response object. More...
 
void fill_mark_rsp (DOMNode *n, SMDMark &mark)
 Fills a mark response object. More...
 
void fill_mark_trademark_rsp (DOMNode *n, SMDTrademark &trademark)
 Fills a mark trademark response object. More...
 
void fill_mark_treatyOrStatute_rsp (DOMNode *n, SMDTreatyOrStatute &treatyOrStatute)
 Fills a mark treaty or statute response object. More...
 
void fill_mark_court_rsp (DOMNode *n, SMDCourt &court)
 Fills a mark court response object. More...
 
void fill_mark_holder_rsp (DOMNode *n, SMDHolder &holder)
 Fills a mark holder response object. More...
 
void fill_mark_contact_rsp (DOMNode *n, SMDContact &contact)
 Fills a mark contact response object. More...
 
void fill_mark_protection_rsp (DOMNode *n, SMDProtection &protection)
 Fills a mark protection response object. More...
 
void fill_mark_addr_rsp (DOMNode *n, PostalInfo &postalInfo)
 Fills a mark address response object. More...
 
- Protected Member Functions inherited from DomParserCommon
DOMNode * parse (const string &xml_payload)
 Do the actual parsing of the XML document. More...
 
void fill_postal_info (DOMNode *n, PostalInfo *postal_info)
 Fills a Postal Info struct. More...
 
void fill_ds_info (DOMNode *n, DSInfo *ds_info)
 Fills a DSInfo object. More...
 
void fill_key_data (DOMNode *n, KeyData *keyData)
 Fills a KeyData object. More...
 
map< string, string, less< string > > get_children_simple (DOMNode *n)
 Fills a map of children names with associated content text. More...
 
map< string, string, less< string > > get_attributes (DOMNode *n)
 Fills a map of attributes and associated values. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from DomParserCommon
static string str_transcode (const XMLCh *const to_transcode)
 Transcodes a XMLCh to string. More...
 
- Protected Attributes inherited from DomParserCommon
XercesDOMParser * _parser
 Object for parsing XML documents.
 
DomErrorHandler _error_handler
 DOM error handler.
 

Detailed Description

EPP DomParser Class.

Member Function Documentation

void DomParser::fill_contact_check_rsp ( DOMNode *  n,
ContactCheckRsp rsp 
)
protected

Fills a Contact check response object.

Parameters
nPointer to a node of the document tree
rspPointer to a contact check response
void DomParser::fill_contact_create_rsp ( DOMNode *  n,
ContactCreateRsp rsp 
)
protected

Fills a Contact create response object.

Parameters
nPointer to a node of the document tree
rspPointer to a contact create response
void DomParser::fill_contact_info_rsp ( DOMNode *  n,
ContactInfoRsp rsp 
)
protected

Fills a Contact info response object.

Parameters
nPointer to a node of the document tree
rspPointer to a contact info response
void DomParser::fill_contact_pandata_rsp ( DOMNode *  n,
PanDataRsp rsp 
)
protected

Fills a Contact PanData response object.

Parameters
nPointer to a node of the document tree
rspPointer to a PanData response
void DomParser::fill_contact_transfer_rsp ( DOMNode *  n,
ContactTransferRsp rsp 
)
protected

Fills a Contact transfer response object.

Parameters
nPointer to a node of the document tree
rspPointer to a contact transfer response
void DomParser::fill_def_reg_check_rsp ( DOMNode *  n,
DefRegCheckRsp rsp 
)
protected

Fills a defensive registration check response object.

Parameters
nPointer to a node of the document tree
rspPointer to a defensive registration check response
void DomParser::fill_def_reg_create_rsp ( DOMNode *  n,
DefRegCreateRsp rsp 
)
protected

Fills a defensive registration create response object.

Parameters
nPointer to a node of the document tree
rspPointer to a defensive registration create response
void DomParser::fill_def_reg_info_rsp ( DOMNode *  n,
DefRegInfoRsp rsp 
)
protected

Fills a defensive registration info response object.

Parameters
nPointer to a node of the document tree
rspPointer to a defensive registration info response
void DomParser::fill_def_reg_renew_rsp ( DOMNode *  n,
DefRegRenewRsp rsp 
)
protected

Fills a defensive registration renew response object.

Parameters
nPointer to a node of the document tree
rspPointer to a defensive registration renew response
void DomParser::fill_def_reg_transfer_rsp ( DOMNode *  n,
DefRegTransferRsp rsp 
)
protected

Fills a defensive registration transfer response object.

Parameters
nPointer to a node of the document tree
rspPointer to a defensive registration transfer response
void DomParser::fill_domain_check_rsp ( DOMNode *  n,
DomainCheckRsp rsp 
)
protected

Fills a Domain check response object.

Parameters
nPointer to a node of the document tree
rspPointer to a domain check response
void DomParser::fill_domain_create_rsp ( DOMNode *  n,
DomainCreateRsp rsp 
)
protected

Fills a Domain create response object.

Parameters
nPointer to a node of the document tree
rspPointer to a domain create response
void DomParser::fill_domain_info_rsp ( DOMNode *  n,
DomainInfoRsp rsp 
)
protected

Fills a Domain info response object.

Parameters
nPointer to a node of the document tree
rspPointer to a domain info response
void DomParser::fill_domain_pandata_rsp ( DOMNode *  n,
PanDataRsp rsp 
)
protected

Fills a Domain PanData response object.

Parameters
nPointer to a node of the document tree
rspPointer to a PanData response
void DomParser::fill_domain_renew_rsp ( DOMNode *  n,
DomainRenewRsp rsp 
)
protected

Fills a Domain renew response object.

Parameters
nPointer to a node of the document tree
rspPointer to a domain renew response
void DomParser::fill_domain_transfer_rsp ( DOMNode *  n,
DomainTransferRsp rsp 
)
protected

Fills a Domain transfer response object.

Parameters
nPointer to a node of the document tree
rspPointer to a domain transfer response
void DomParser::fill_domain_update_rsp ( DOMNode *  n,
DomainUpdateRsp rsp 
)
protected

Fills a Domain update response object.

Parameters
nPointer to a node of the document tree
rspPointer to a domain update response
void DomParser::fill_greeting ( DOMNode *  n,
Greeting greeting 
)
protected

Fills a Greeting object.

Parameters
nPointer to a node of the document tree
greetingPointer to a greeting object
void DomParser::fill_lacnic_contact_info_rsp ( DOMNode *  n,
ContactInfoRsp rsp 
)
protected

Fills a Lacnic Contact info response object.

Parameters
nPointer to a node of the document tree
rspPointer to a lacnic contact info response
void DomParser::fill_launch_check_rsp ( DOMNode *  n,
LaunchCheckRsp launch 
)
protected

Fills a Launch check response object.

Parameters
nPointer to a node of the document tree
launchObject that is going to be filled
void DomParser::fill_launch_info_rsp ( DOMNode *  n,
LaunchInfoRsp launch 
)
protected

Fills a Launch info response object.

Parameters
nPointer to a node of the document tree
launchObject that is going to be filled
void DomParser::fill_mark_addr_rsp ( DOMNode *  n,
PostalInfo postalInfo 
)
protected

Fills a mark address response object.

Parameters
nPointer to a node of the document tree
postalInfoObject that is going to be filled
void DomParser::fill_mark_contact_rsp ( DOMNode *  n,
SMDContact contact 
)
protected

Fills a mark contact response object.

Parameters
nPointer to a node of the document tree
contactObject that is going to be filled
void DomParser::fill_mark_court_rsp ( DOMNode *  n,
SMDCourt court 
)
protected

Fills a mark court response object.

Parameters
nPointer to a node of the document tree
courtObject that is going to be filled
void DomParser::fill_mark_holder_rsp ( DOMNode *  n,
SMDHolder holder 
)
protected

Fills a mark holder response object.

Parameters
nPointer to a node of the document tree
holderObject that is going to be filled
void DomParser::fill_mark_protection_rsp ( DOMNode *  n,
SMDProtection protection 
)
protected

Fills a mark protection response object.

Parameters
nPointer to a node of the document tree
protectionObject that is going to be filled
void DomParser::fill_mark_rsp ( DOMNode *  n,
SMDMark mark 
)
protected

Fills a mark response object.

Parameters
nPointer to a node of the document tree
markObject that is going to be filled
void DomParser::fill_mark_trademark_rsp ( DOMNode *  n,
SMDTrademark trademark 
)
protected

Fills a mark trademark response object.

Parameters
nPointer to a node of the document tree
trademarkObject that is going to be filled
void DomParser::fill_mark_treatyOrStatute_rsp ( DOMNode *  n,
SMDTreatyOrStatute treatyOrStatute 
)
protected

Fills a mark treaty or statute response object.

Parameters
nPointer to a node of the document tree
treatyOrStatuteObject that is going to be filled
void DomParser::fill_poll_rsp ( DOMNode *  n,
PollRsp poll_rsp 
)
protected

Fills a Poll response object.

Parameters
nPointer to a node of the document tree
poll_rspPointer to a poll response
void DomParser::fill_response ( DOMNode *  n,
Response rsp 
)
protected

Fills a Response object.

Parameters
nPointer to a node of the document tree
rspPointer to a Response object
void DomParser::fill_result ( DOMNode *  n,
Response rsp 
)
protected

Fills a result part of a Response object.

Parameters
nPointer to a node of the document tree
rspPointer to a Response object
void DomParser::get_extValue_info ( DOMNode *  n,
string &  value,
string &  xmlns,
string &  reason 
)
protected

Gets data from an extValue element.

Parameters
nPointer to a node of the document tree
valuevalue sub-element of extValue
xmlnsvalue sub-element's attribute
reasonreason sub-element of extValue
void DomParser::parse_command ( const string &  xml_payload)

Parse method to be used by the Unit Test to validate commands.

Parameters
xml_payloadCommand (in XML format) to be validated
void DomParser::parse_contact_check_rsp ( const string &  xml_payload,
ContactCheckRsp rsp 
)

Parse the response to a contact check command.

Parameters
xml_payloadXML to be parsed
rspPointer to a contact check response

Referenced by ContactCheck::set_response().

void DomParser::parse_contact_create_rsp ( const string &  xml_payload,
ContactCreateRsp rsp 
)

Parse the response to a contact create command.

Parameters
xml_payloadXML to be parsed
rspPointer to a contact create response

Referenced by ContactCreate::set_response().

void DomParser::parse_contact_delete_rsp ( const string &  xml_payload,
Response rsp 
)

Parse the response to a contact delete command.

Parameters
xml_payloadXML to be parsed
rspPointer to a response

Referenced by ContactDelete::set_response().

void DomParser::parse_contact_info_rsp ( const string &  xml_payload,
ContactInfoRsp rsp 
)

Parse the response to a contact info command.

Parameters
xml_payloadXML to be parsed
rspPointer to a contact info response

Referenced by ContactInfo::set_response().

void DomParser::parse_contact_transfer_rsp ( const string &  xml_payload,
ContactTransferRsp rsp 
)

Parse the response to a contact transfer command.

Parameters
xml_payloadXML to be parsed
rspPointer to a contact transfer response

Referenced by ContactTransfer::set_response().

void DomParser::parse_contact_update_rsp ( const string &  xml_payload,
Response rsp 
)

Parse the response to a contact update command.

Parameters
xml_payloadXML to be parsed
rspPointer to a response

Referenced by ContactUpdate::set_response().

void DomParser::parse_def_reg_check_rsp ( const string &  xml_payload,
DefRegCheckRsp rsp 
)

Parse the response to a defensive registration check command.

Parameters
xml_payloadXML to be parsed
rspPointer to a defensive registration check response

Referenced by DefRegCheck::set_response().

void DomParser::parse_def_reg_create_rsp ( const string &  xml_payload,
DefRegCreateRsp rsp 
)

Parse the response to a defensive registration create command.

Parameters
xml_payloadXML to be parsed
rspPointer to a defensive registration create response

Referenced by DefRegCreate::set_response().

void DomParser::parse_def_reg_delete_rsp ( const string &  xml_payload,
Response rsp 
)

Parse the response to a defensive registration create command.

Parameters
xml_payloadXML to be parsed
rspPointer to a defensive registration create response

Referenced by DefRegDelete::set_response().

void DomParser::parse_def_reg_info_rsp ( const string &  xml_payload,
DefRegInfoRsp rsp 
)

Parse the response to a defensive registration info command.

Parameters
xml_payloadXML to be parsed
rspPointer to a defensive registration info response

Referenced by DefRegInfo::set_response().

void DomParser::parse_def_reg_renew_rsp ( const string &  xml_payload,
DefRegRenewRsp rsp 
)

Parse the response to a defensive registration renew command.

Parameters
xml_payloadXML to be parsed
rspPointer to a defensive registration renew response

Referenced by DefRegRenew::set_response().

void DomParser::parse_def_reg_transfer_rsp ( const string &  xml_payload,
DefRegTransferRsp rsp 
)

Parse the response to a defensive registration transfer command.

Parameters
xml_payloadXML to be parsed
rspPointer to a defensive registration transfer response

Referenced by DefRegTransfer::set_response().

void DomParser::parse_def_reg_update_rsp ( const string &  xml_payload,
Response rsp 
)

Parse the response to a defensive registration update command.

Parameters
xml_payloadXML to be parsed
rspPointer to a defensive registration update response

Referenced by DefRegUpdate::set_response().

void DomParser::parse_domain_check_rsp ( const string &  xml_payload,
DomainCheckRsp rsp 
)

Parse the response to a domain check command.

Parameters
xml_payloadXML to be parsed
rspPointer to a domain check response

Referenced by DomainCheck::set_response().

void DomParser::parse_domain_create_rsp ( const string &  xml_payload,
DomainCreateRsp rsp 
)

Parse the response to a domain create command.

Parameters
xml_payloadXML to be parsed
rspPointer to a domain create response

Referenced by DomainCreate::set_response().

void DomParser::parse_domain_delete_rsp ( const string &  xml_payload,
Response rsp 
)

Parse the response to a domain delete command.

Parameters
xml_payloadXML to be parsed
rspPointer to a response

Referenced by DomainDelete::set_response().

void DomParser::parse_domain_info_rsp ( const string &  xml_payload,
DomainInfoRsp rsp 
)

Parse the response to a domain info command.

Parameters
xml_payloadXML to be parsed
rspPointer to a domain info response

Referenced by DomainInfo::set_response().

void DomParser::parse_domain_renew_rsp ( const string &  xml_payload,
DomainRenewRsp rsp 
)

Parse the response to a domain renew command.

Parameters
xml_payloadXML to be parsed
rspPointer to a domain renew response

Referenced by DomainRenew::set_response().

void DomParser::parse_domain_transfer_rsp ( const string &  xml_payload,
DomainTransferRsp rsp 
)

Parse the response to a domain transfer command.

Parameters
xml_payloadXML to be parsed
rspPointer to a domain transfer response

Referenced by DomainTransfer::set_response().

void DomParser::parse_domain_update_rsp ( const string &  xml_payload,
DomainUpdateRsp rsp 
)

Parse the response to a domain update command.

Parameters
xml_payloadXML to be parsed
rspPointer to a domain update response

Referenced by DomainUpdate::set_response().

void DomParser::parse_greeting ( const string &  xml_payload,
Greeting greeting 
)

Parse the response to a connect or hello command.

Parameters
xml_payloadXML to be parsed
greetingPointer to a greeting response
void DomParser::parse_login_rsp ( const string &  xml_payload,
Response rsp 
)

Parse the response to a login command.

Parameters
xml_payloadXML to be parsed
rspPointer to a response

Referenced by Login::set_response().

void DomParser::parse_logout_rsp ( const string &  xml_payload,
Response rsp 
)

Parse the response to a logout command.

Parameters
xml_payloadXML to be parsed
rspPointer to a response

Referenced by Logout::set_response().

void DomParser::parse_poll_rsp ( const string &  xml_payload,
PollRsp rsp 
)

Parse the response to a poll command.

Parameters
xml_payloadXML to be parsed
rspPointer to a poll response

Referenced by Poll::set_response().

void DomParser::parse_response ( const string &  xml_payload,
Response rsp 
)
protected

Parse the response.

Parameters
xml_payloadXML to be parsed
rspPointer to a response

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