DRDE/ACTK1_0/OTE/LPECreateCommand.hpp

39 lines
1.6 KiB
C++
Raw Normal View History

2014-01-15 18:29:15 +00:00
#ifndef __LPECREATECOMMAND_HPP
#define __LPECREATECOMMAND_HPP
2014-01-21 23:01:41 +00:00
#define OTEADT void
2014-01-15 18:29:15 +00:00
2014-01-21 23:01:41 +00:00
#include "se/DomainCreateCommand.hpp"
#include "se/CommandExtension.hpp"
class LPECreateCommand;
2014-01-15 18:29:15 +00:00
/**
* Mapping of EPP urn:ietf:params:xml:ns:domain-1.0 create command specified in
* RFC3731. Command-response extensions to the domain:create command are
* implemented as subclasses of this.
* Use this class to generate a standards-compliant XML document, given simple
* input parameters. The toXML method in Command serialises this object to
* XML.
*/
2014-01-21 23:01:41 +00:00
class LPECreateCommand : public DomainCreateCommand, public CommandExtension
2014-01-15 18:29:15 +00:00
{
public:
/**
* Constructor for a domain:create EPP command. All core EPP domain:create
* attributes may be set using this constructor.
*/
LPECreateCommand (const std::string& name,
const std::string& pw,
const std::string* registrantID,
const std::vector<std::string>* techContacts = NULL,
const std::vector<std::string>* nameservers = NULL,
const std::vector<std::string>* adminContacts = NULL,
const std::vector<std::string>* billingContacts = NULL,
2014-01-21 23:01:41 +00:00
const Period* period = NULL) :
DomainCreateCommand(name, pw, registrantID, techContacts, nameservers,
adminContacts, billingContacts, period), CommandExtension(){}
virtual void addToCommand(const Command &command) const;
void setCreateData(OTEADT* createData);
2014-01-15 18:29:15 +00:00
};
2014-01-15 21:41:16 +00:00
#endif // __LPECREATECOMMAND_HPP