com.tucows.oxrs.epp02.rtk.xml

Class EPPDomainBase

Known Direct Subclasses:
EPPDomainCheck, EPPDomainCreate, EPPDomainDelete, EPPDomainInfo, EPPDomainRenew, EPPDomainTransfer, EPPDomainUpdate

public abstract class EPPDomainBase
extends EPPXMLBase

Base abstract class for the Domain classes. Defines common methods and data methods used by all or most Domain classes.

Field Summary

protected static Hashtable
contact_type_hash_
protected static String[]
contact_type_to_string_array_
protected static Hashtable
domain_status_hash_
Hashtable to allow for conversion from String domain status to epp_DomainStatusType.
static String[]
period_unit_to_string_array_
Array to allow for conversion from epp_DomainPeriodUnitType to a String representation of the unit type.
protected static String[]
status_to_string_array_
Array to allow for conversion from epp_DomainStatusType to a String representation of the domain status.

Fields inherited from class com.tucows.oxrs.epp02.rtk.xml.EPPXMLBase

auth_type_string_to_type_hash_, auth_type_to_string_array_, transfer_op_to_string_array_, transfer_status_to_string_array_, transfer_status_to_type_hash_, xml_

Fields inherited from class com.tucows.oxrs.epp02.rtk.RTKBase

CRLF, DATE_FMT, DEBUG_LEVEL_ONE, DEBUG_LEVEL_THREE, DEBUG_LEVEL_TWO, DEBUG_NONE, RTK_VERSION, UTC_FMT

Constructor Summary

EPPDomainBase()
Default constructor.
EPPDomainBase(String xml)
Constructor with XML String Also initializes the static Hashtables.

Method Summary

static String
domainContactTypeToString(epp_DomainContactType contact_type)
Convenience method to transform an epp_DomainContactType to a real domain type string (i.e.
static epp_DomainStatusType
domainStatusFromString(String s)
static String
domainStatusToString(epp_DomainStatusType status_type)
Convenience method to transform an epp_DomainStatusType to a real domain status string.
protected static void
initContactTypeHash()
protected static void
initDomainStatusHash()
static void
initHashes()
protected void
setCommonAttributes(Element command)
Sets the common XML attributes required for the domain object (eg.

Methods inherited from class com.tucows.oxrs.epp02.rtk.xml.EPPXMLBase

addXMLElement, convertListToArray, convertListToStringArray, createDocRoot, createXMLFromDoc, createXMLSnippetFromDoc, getCheckResultFor, getDocumentElement, getElement, getNode, getUnspecNode, getXML, initAuthInfoStringToTypeHash, initHashes, initTransferStatusToTypeHash, parseGenericResult, prepareAuthInfo, prepareCreds, prepareUnspecElement, stringListToXML, transferStatusToString

Methods inherited from class com.tucows.oxrs.epp02.rtk.RTKBase

_ids, debug, debug, getDebugLevel, getRTKProperties, setDebugLevel

Field Details

contact_type_hash_

protected static Hashtable contact_type_hash_
See Also:
EPP IDL epp_domain.idl for the definition of the epp_DomainStatusType enum

contact_type_to_string_array_

protected static String[] contact_type_to_string_array_
See Also:
EPP IDL epp_domain.idl for the definition of the epp_DomainStatusType enum

domain_status_hash_

protected static Hashtable domain_status_hash_
Hashtable to allow for conversion from String domain status to epp_DomainStatusType.
See Also:
EPP IDL epp_domain.idl for the definition of the epp_DomainStatusType enum

period_unit_to_string_array_

public static String[] period_unit_to_string_array_
Array to allow for conversion from epp_DomainPeriodUnitType to a String representation of the unit type. The epp_DomainPeriodUnitType static classes have a value() member function which returns their integer position in the enum.
See Also:
EPP IDL epp_domain.idl for the definition of the epp_DomainPeriodUnitType enum

status_to_string_array_

protected static String[] status_to_string_array_
Array to allow for conversion from epp_DomainStatusType to a String representation of the domain status. The epp_DomainStatusType static classes have a value() member function which returns their integer position in the enum.
See Also:
EPP IDL epp_domain.idl for the definition of the epp_DomainStatusType enum

Constructor Details

EPPDomainBase

public EPPDomainBase()
Default constructor. Initializes the static Hashtables.

EPPDomainBase

public EPPDomainBase(String xml)
Constructor with XML String Also initializes the static Hashtables.

Method Details

domainContactTypeToString

public static String domainContactTypeToString(epp_DomainContactType contact_type)
Convenience method to transform an epp_DomainContactType to a real domain type string (i.e. admin, billing, tech).

domainStatusFromString

public static epp_DomainStatusType domainStatusFromString(String s)

domainStatusToString

public static String domainStatusToString(epp_DomainStatusType status_type)
Convenience method to transform an epp_DomainStatusType to a real domain status string.

initContactTypeHash

protected static void initContactTypeHash()

initDomainStatusHash

protected static void initDomainStatusHash()

initHashes

public static void initHashes()
Overrides:
initHashes in interface EPPXMLBase

setCommonAttributes

protected void setCommonAttributes(Element command)
Sets the common XML attributes required for the domain object (eg. xmlns:domain, xsi:schemaLocation)
Parameters:

Copyright © 2001-2002 - Tucows, Inc., 2003 - LibertyRMS