DRDE/ACTK1_0/OTE/LPECreateCommand.hpp

39 lines
1.6 KiB
C++

#ifndef __LPECREATECOMMAND_HPP
#define __LPECREATECOMMAND_HPP
#define OTEADT void
#include "se/DomainCreateCommand.hpp"
#include "se/CommandExtension.hpp"
class LPECreateCommand;
/**
* 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.
*/
class LPECreateCommand : public DomainCreateCommand, public CommandExtension
{
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,
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);
};
#endif // __LPECREATECOMMAND_HPP