diff --git a/ACTK1_0/Makefile b/ACTK1_0/Makefile index 0a6f6a3..43e20b8 100644 --- a/ACTK1_0/Makefile +++ b/ACTK1_0/Makefile @@ -117,7 +117,7 @@ $(BUILD_OBJ_DIR)/%: $(BUILD_OBJ_DIR)/%.o # ARTKOBJS=build/XMLGregorianCalendar.o build/XMLParser.o build/XMLWriter.o build/ACSession.o build/DomainAddRem.o \ build/EnumDomainInfoResponse.o build/log.o build/PostalInfoType.o build/SessionManagerPropertiesImpl.o \ -build/RegistrantObjectType.o \ +build/RegistrantObjectType.o build/LPExtension.o \ build/AddRemType.o build/DomainCheckResponse.o build/EnumDomainUpdateCommand.o build/Properties.o build/SessionPoolImpl.o \ build/boolean.o build/DomainCreateCommand.o build/EnumType.o build/ProtocolExtensionCommand.o build/SSLException.o \ build/CertificateUserMismatchException.o build/DomainCreateResponse.o build/EPPDateFormatter.o build/ReceiveSE.o build/StandardCommandType.o \ diff --git a/ACTK1_0/se/LPE/LPCheck.cpp b/ACTK1_0/se/LPE/LPCheck.cpp index 8ba2fc1..0eaa32a 100644 --- a/ACTK1_0/se/LPE/LPCheck.cpp +++ b/ACTK1_0/se/LPE/LPCheck.cpp @@ -4,17 +4,28 @@ namespace { Extension& launchPhaseExtension() { - static Extension* lpExtension = new LPLaunch(); + static Extension* lpExtension = new LPExtension(); return *lpExtension; } }; // anonymous namespace void LPCheck::setExtension () { - DOMElement *lpeCreate = xmlWriter->appendChild( xmlWriter->appendChild( command, "extension"), - "check", launchPhaseExtension().getURI()); + "launch:check", launchPhaseExtension().getURI()); } +void LPCheck::addToCommand(const Command &command) const +{ + XMLWriter* xmlWriter = command.getXmlWriter(); + DOMElement* extensionElement = command.getExtensionElement(); + DOMElement* createElement = xmlWriter->appendChild(extensionElement, + "lauch:claims", launchPhaseExtension().getURI()); + + if (createData.get() != NULL) + { + createData->createXMLElement(xmlWriter, createElement); + } +} diff --git a/ACTK1_0/se/LPE/LPCheck.hpp b/ACTK1_0/se/LPE/LPCheck.hpp index 56ee599..293fec7 100644 --- a/ACTK1_0/se/LPE/LPCheck.hpp +++ b/ACTK1_0/se/LPE/LPCheck.hpp @@ -11,6 +11,8 @@ LPLaunch *draft_tan_epp_launchphase_12; void setExtension (); + std::auto_ptr createData; + public: /** * Check the availability of the single identified domain. @@ -26,7 +28,9 @@ * @param names The names of the domains to check the availability of. */ LPCheck (std::vector &names ) - : DomainCheckCommand ( names ) {} + : DomainCheckCommand ( names ) { setExtension();} + + virtual void addToCommand(const Command &command) const; }; diff --git a/ACTK1_0/se/LPE/LPLaunch.cpp b/ACTK1_0/se/LPE/LPLaunch.cpp index d171a19..87774f0 100644 --- a/ACTK1_0/se/LPE/LPLaunch.cpp +++ b/ACTK1_0/se/LPE/LPLaunch.cpp @@ -3,9 +3,8 @@ void LPLaunch::appendData(XMLWriter* xmlWriter, DOMElement* addElement) { - DOMElement* lpDataElement = xmlWriter->appendChild(addElement, "launch"); - XMLHelper::setTextContent(xmlWriter->appendChild(lpDataElement, "phase"), phase); - XMLHelper::setTextContent(xmlWriter->appendChild(lpDataElement, "status"), status); + DOMElement* lpDataElement = xmlWriter->appendChild(addElement, "claims"); + XMLHelper::setTextContent(xmlWriter->appendChild(lpDataElement, "claims"), claims); } @@ -14,14 +13,3 @@ void LPLaunch::createXMLElement(XMLWriter* xmlWriter, DOMElement* addElement) } -std::string& LPLaunch::getURI() const -{ - static std::string uri = "urn:ietf:params:xml:ns:launch-1.0"; - return uri; -} - -std::string& LPLaunch::getSchemaLocation() const -{ - static std::string loc = "urn:ietf:params:xml:ns:launch-1.0 launch-1.0.xsd"; - return loc; -} diff --git a/ACTK1_0/se/LPE/LPLaunch.hpp b/ACTK1_0/se/LPE/LPLaunch.hpp index 8ab121c..5d06303 100644 --- a/ACTK1_0/se/LPE/LPLaunch.hpp +++ b/ACTK1_0/se/LPE/LPLaunch.hpp @@ -5,7 +5,7 @@ #include "xercesc/dom/DOMElement.hpp" #include "xml/XMLWriter.hpp" -#include "se/Extension.hpp" +#include "se/LPE/LPExtension.hpp" using namespace std; @@ -13,8 +13,9 @@ class LPLaunch : public Extension { public: LPLaunch() : - phase(""), - status(")") + claims("claims"), + phase("sunrise"), + status("available") {} virtual ~LPLaunch() {} @@ -25,10 +26,9 @@ class LPLaunch : public Extension void appendData(XMLWriter* xmlWriter, DOMElement* addElement); void createXMLElement(XMLWriter* xmlWriter, DOMElement* addElement); - std::string& getURI() const; - std::string& getSchemaLocation() const; private: + string claims; string phase; string status; }; diff --git a/ACTK1_0/se/LPE/LPRespExtender.cpp b/ACTK1_0/se/LPE/LPRespExtender.cpp index c891dd5..c8e46d2 100644 --- a/ACTK1_0/se/LPE/LPRespExtender.cpp +++ b/ACTK1_0/se/LPE/LPRespExtender.cpp @@ -7,7 +7,7 @@ using namespace std; void LPRespExtender::fromXML(XMLDocument *xmlDoc) { - infData.reset(new LPLaunch); +// infData.reset(new LPExtension); // if (xmlDoc->getNodeCount("count(" + MAXSIGLIFE_EXPR() + ")") > 0) // { diff --git a/AusRegCliever/server/mdAusReg.cpp b/AusRegCliever/server/mdAusReg.cpp index 8240006..53a48f5 100644 --- a/AusRegCliever/server/mdAusReg.cpp +++ b/AusRegCliever/server/mdAusReg.cpp @@ -193,7 +193,7 @@ void ausRegEPPTK::doOTEB() manager->execute(thisTest); } catch (EPPException& e) - { const char *eMsg = e.getMessage().c_str(); + { const char *eMsg = e.getMessage().c_str(); const char *opNow = op.c_str(); theseLogs->logN(2,"EPP Exception during OTE B (%s): %s .",opNow,eMsg); throw e;