com.tucows.oxrs.epp02.rtk.xml

Class EPPHostBase

Known Direct Subclasses:
EPPHostCheck, EPPHostCreate, EPPHostDelete, EPPHostInfo, EPPHostUpdate

public abstract class EPPHostBase
extends EPPXMLBase

Base abstract class for the Host classes. Defines common data members used by all or most Host classes.

Field Summary

protected static String[]
host_ip_to_string_array_
Array to allow for conversion from epp_HostAddressType to a String representation of the host address.
protected static Hashtable
host_ip_to_type_hash_
Hashtable to allow for conversion from String address type to epp_HostAddressType.
protected static Hashtable
host_status_hash_
Hashtable to allow for conversion from String host status to epp_HostStatusType.
protected static String[]
status_to_string_array_
Array to allow for conversion from epp_HostStatusType to a String representation of the host 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

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

Method Summary

static String
hostAddressTypeToString(epp_HostAddressType address_type)
Convenience method to get a host address type string from an epp_HostAddressType object.
static epp_HostStatusType
hostStatusFromString(String s)
static String
hostStatusToString(epp_HostStatusType status_type)
Convenience method to get a host status string from an epp_HostStatusType object.
static void
initHashes()
protected static void
initHostIpToTypeHash()
protected static void
initHostStatusHash()
protected void
setCommonAttributes(Element command)
Sets the common XML attributes required for the host 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

host_ip_to_string_array_

protected static String[] host_ip_to_string_array_
Array to allow for conversion from epp_HostAddressType to a String representation of the host address. The epp_HostAddressType static classes have a value() member function which returns their integer position in the enum.
See Also:
EPP IDL epp_host.idl for the definition of the epp_HostAddressType enum

host_ip_to_type_hash_

protected static Hashtable host_ip_to_type_hash_
Hashtable to allow for conversion from String address type to epp_HostAddressType.
See Also:
EPP IDL epp_host.idl for the definition of the epp_HostAddressType enum

host_status_hash_

protected static Hashtable host_status_hash_
Hashtable to allow for conversion from String host status to epp_HostStatusType.
See Also:
EPP IDL epp_host.idl for the definition of the epp_HostStatusType enum

status_to_string_array_

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

Constructor Details

EPPHostBase

protected EPPHostBase()
Default constructor. Initializes the static Hashtables.

EPPHostBase

protected EPPHostBase(String xml)
Constructor with XML String Also initializes the static Hashtables.

Method Details

hostAddressTypeToString

public static String hostAddressTypeToString(epp_HostAddressType address_type)
Convenience method to get a host address type string from an epp_HostAddressType object.

hostStatusFromString

public static epp_HostStatusType hostStatusFromString(String s)

hostStatusToString

public static String hostStatusToString(epp_HostStatusType status_type)
Convenience method to get a host status string from an epp_HostStatusType object.

initHashes

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

initHostIpToTypeHash

protected static void initHostIpToTypeHash()

initHostStatusHash

protected static void initHostStatusHash()

setCommonAttributes

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

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