DRDE/AusRegEPPTK/se/AuDomainInfoResponseV1.hpp

69 lines
2.9 KiB
C++
Raw Normal View History

2013-12-31 19:36:07 +00:00
#ifndef __AU_DOMAIN_INFO_RESPONSEV1_HPP
#define __AU_DOMAIN_INFO_RESPONSEV1_HPP
#include "common/Deprecated.hpp"
#include "se/DomainInfoResponse.hpp"
#include <string>
/**
* Extension of the domain mapping of the EPP info response, as defined in
* RFC3730 and RFC3731, to .au domain names, the specification of which is in
* the XML schema definition urn:au:params:xml:ns:auext-1.0.
* Instances of this class provide an interface to access all of the
* information available through EPP for a .au domain name.
* This relies on the instance first being initialised by a suitable EPP domain
* info response using the method fromXML. For flexibility, this
* implementation extracts the data from the response using XPath queries, the
* expressions for which are defined statically.
* @deprecated AU eligibility extensions should now be managed through the
* @c <kvlist> extension defined in the
* <tt>urn:X-ar:params:xml:ns:kv-1.0</tt> namespace. This can be done
* through the toolkit by using a @c DomainInfoResponse and
* registering a @c DomainInfoKVResponseExtension object, which
* will contain the AU eligibility extensions.
*
* See
* {@link DomainInfoResponse.registerExtension(ResponseExtension)}
* and
* {@link DomainInfoKVResponseExtension}.
*/
class AuDomainInfoResponseV1 : public DomainInfoResponse
{
public:
DEPRECATED(AuDomainInfoResponseV1());
const std::string& getRegistrantName() const { return registrantName; };
const std::string& getAURegistrantID() const { return registrantID; };
const std::string& getRegistrantIDType() const { return registrantIDType; };
const std::string& getEligibilityType() const { return eligibilityType; };
const std::string& getEligibilityName() const { return eligibilityName; };
const std::string& getEligibilityID() const { return eligibilityID; };
const std::string& getEligibilityIDType() const { return eligibilityIDType; };
int getPolicyReason() const { return policyReason; };
virtual void fromXML (XMLDocument *xmlDoc) throw (ParsingException);
private:
static const std::string AUEXT_EXPR,
AU_REGISTRANT_NAME_EXPR,
AU_REGISTRANT_ID_EXPR,
AU_REGISTRANT_ID_TYPE_EXPR,
AU_ELI_TYPE_EXPR,
AU_ELI_NAME_EXPR,
AU_ELI_ID_EXPR,
AU_ELI_ID_TYPE_EXPR,
AU_POLICY_REASON_EXPR;
std::string registrantName,
registrantID,
registrantIDType,
eligibilityType,
eligibilityName,
eligibilityID,
eligibilityIDType;
int policyReason;
};
#endif // __AU_DOMAIN_INFO_RESPONSEV1_HPP