DRDE/ACTK1_0/se/SendSE.cpp

54 lines
1.0 KiB
C++
Raw Permalink Normal View History

#include "se/SendSE.hpp"
using namespace std;
Logger* SendSE::userLogger;
string& SendSE::eppns()
{
static string expr = "urn:ietf:params:xml:ns:epp-1.0";
return expr;
}
string& SendSE::xsi()
{
static string expr = "http://www.w3.org/2001/XMLSchema-instance";
return expr;
}
string& SendSE::schemaLocation()
{
static string expr = "urn:ietf:params:xml:ns:epp-1.0 epp-1.0.xsd";
return expr;
}
const string SendSE::XML_VERSION()
{
static const string ver = "1.0";
return ver;
}
const string SendSE::XML_ENCODING()
{
static const string enc = "UTF-8";
return enc;
}
SendSE::SendSE(const string& xmlVersion,
const string& xmlEncoding,
bool xmlStandalone)
{
xmlWriter = new EPPWriter(xmlVersion, xmlEncoding, xmlStandalone,
eppns(), xsi(), schemaLocation());
}
SendSE::~SendSE()
{
delete xmlWriter;
}
void SendSE::init ()
{
2014-01-23 21:06:09 +00:00
userLogger = Logger::getLogger("biz.meansofproduction.dnseppus.se.user");
}