libepp_nicbr
|
#include <DomParser.H>
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... | |
![]() | |
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... | |
![]() | |
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 string | str_transcode (const XMLCh *const to_transcode) |
Transcodes a XMLCh to string. More... | |
![]() | |
XercesDOMParser * | _parser |
Object for parsing XML documents. | |
DomErrorHandler | _error_handler |
DOM error handler. | |
EPP DomParser Class.
|
protected |
Fills a Contact check response object.
n | Pointer to a node of the document tree |
rsp | Pointer to a contact check response |
|
protected |
Fills a Contact create response object.
n | Pointer to a node of the document tree |
rsp | Pointer to a contact create response |
|
protected |
Fills a Contact info response object.
n | Pointer to a node of the document tree |
rsp | Pointer to a contact info response |
|
protected |
Fills a Contact PanData response object.
n | Pointer to a node of the document tree |
rsp | Pointer to a PanData response |
|
protected |
Fills a Contact transfer response object.
n | Pointer to a node of the document tree |
rsp | Pointer to a contact transfer response |
|
protected |
Fills a defensive registration check response object.
n | Pointer to a node of the document tree |
rsp | Pointer to a defensive registration check response |
|
protected |
Fills a defensive registration create response object.
n | Pointer to a node of the document tree |
rsp | Pointer to a defensive registration create response |
|
protected |
Fills a defensive registration info response object.
n | Pointer to a node of the document tree |
rsp | Pointer to a defensive registration info response |
|
protected |
Fills a defensive registration renew response object.
n | Pointer to a node of the document tree |
rsp | Pointer to a defensive registration renew response |
|
protected |
Fills a defensive registration transfer response object.
n | Pointer to a node of the document tree |
rsp | Pointer to a defensive registration transfer response |
|
protected |
Fills a Domain check response object.
n | Pointer to a node of the document tree |
rsp | Pointer to a domain check response |
|
protected |
Fills a Domain create response object.
n | Pointer to a node of the document tree |
rsp | Pointer to a domain create response |
|
protected |
Fills a Domain info response object.
n | Pointer to a node of the document tree |
rsp | Pointer to a domain info response |
|
protected |
Fills a Domain PanData response object.
n | Pointer to a node of the document tree |
rsp | Pointer to a PanData response |
|
protected |
Fills a Domain renew response object.
n | Pointer to a node of the document tree |
rsp | Pointer to a domain renew response |
|
protected |
Fills a Domain transfer response object.
n | Pointer to a node of the document tree |
rsp | Pointer to a domain transfer response |
|
protected |
Fills a Domain update response object.
n | Pointer to a node of the document tree |
rsp | Pointer to a domain update response |
|
protected |
Fills a Greeting object.
n | Pointer to a node of the document tree |
greeting | Pointer to a greeting object |
|
protected |
Fills a Lacnic Contact info response object.
n | Pointer to a node of the document tree |
rsp | Pointer to a lacnic contact info response |
|
protected |
Fills a Launch check response object.
n | Pointer to a node of the document tree |
launch | Object that is going to be filled |
|
protected |
Fills a Launch info response object.
n | Pointer to a node of the document tree |
launch | Object that is going to be filled |
|
protected |
Fills a mark address response object.
n | Pointer to a node of the document tree |
postalInfo | Object that is going to be filled |
|
protected |
Fills a mark contact response object.
n | Pointer to a node of the document tree |
contact | Object that is going to be filled |
|
protected |
Fills a mark court response object.
n | Pointer to a node of the document tree |
court | Object that is going to be filled |
|
protected |
Fills a mark holder response object.
n | Pointer to a node of the document tree |
holder | Object that is going to be filled |
|
protected |
Fills a mark protection response object.
n | Pointer to a node of the document tree |
protection | Object that is going to be filled |
|
protected |
Fills a mark response object.
n | Pointer to a node of the document tree |
mark | Object that is going to be filled |
|
protected |
Fills a mark trademark response object.
n | Pointer to a node of the document tree |
trademark | Object that is going to be filled |
|
protected |
Fills a mark treaty or statute response object.
n | Pointer to a node of the document tree |
treatyOrStatute | Object that is going to be filled |
|
protected |
Fills a Poll response object.
n | Pointer to a node of the document tree |
poll_rsp | Pointer to a poll response |
|
protected |
|
protected |
|
protected |
Gets data from an extValue element.
n | Pointer to a node of the document tree |
value | value sub-element of extValue |
xmlns | value sub-element's attribute |
reason | reason sub-element of extValue |
void DomParser::parse_command | ( | const string & | xml_payload | ) |
Parse method to be used by the Unit Test to validate commands.
xml_payload | Command (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.
xml_payload | XML to be parsed |
rsp | Pointer 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.
xml_payload | XML to be parsed |
rsp | Pointer 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.
xml_payload | XML to be parsed |
rsp | Pointer 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.
xml_payload | XML to be parsed |
rsp | Pointer 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.
xml_payload | XML to be parsed |
rsp | Pointer 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.
xml_payload | XML to be parsed |
rsp | Pointer 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.
xml_payload | XML to be parsed |
rsp | Pointer 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.
xml_payload | XML to be parsed |
rsp | Pointer 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.
xml_payload | XML to be parsed |
rsp | Pointer 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.
xml_payload | XML to be parsed |
rsp | Pointer 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.
xml_payload | XML to be parsed |
rsp | Pointer 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.
xml_payload | XML to be parsed |
rsp | Pointer 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.
xml_payload | XML to be parsed |
rsp | Pointer 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.
xml_payload | XML to be parsed |
rsp | Pointer 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.
xml_payload | XML to be parsed |
rsp | Pointer 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.
xml_payload | XML to be parsed |
rsp | Pointer 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.
xml_payload | XML to be parsed |
rsp | Pointer 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.
xml_payload | XML to be parsed |
rsp | Pointer 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.
xml_payload | XML to be parsed |
rsp | Pointer 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.
xml_payload | XML to be parsed |
rsp | Pointer 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.
xml_payload | XML to be parsed |
greeting | Pointer to a greeting response |
void DomParser::parse_login_rsp | ( | const string & | xml_payload, |
Response * | rsp | ||
) |
Parse the response to a login command.
xml_payload | XML to be parsed |
rsp | Pointer 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.
xml_payload | XML to be parsed |
rsp | Pointer 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.
xml_payload | XML to be parsed |
rsp | Pointer to a poll response |
Referenced by Poll::set_response().
|
protected |
Parse the response.
xml_payload | XML to be parsed |
rsp | Pointer to a response |