com.tucows.oxrs.epp.rtk.xml
Class EPPHostBase
java.lang.Object
|
+--org.omg.CORBA.portable.ObjectImpl
|
+--com.tucows.oxrs.epp.rtk.RTKBase
|
+--com.tucows.oxrs.epp.rtk.xml.EPPXMLBase
|
+--com.tucows.oxrs.epp.rtk.xml.EPPHostBase
- All Implemented Interfaces:
- org.omg.CORBA.Object
- Direct Known 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 java.lang.String[] |
host_ip_to_string_array_
Array to allow for conversion from epp_HostAddressType to
a String representation of the host address. |
protected static java.util.Hashtable |
host_ip_to_type_hash_
Hashtable to allow for conversion from String address type to
epp_HostAddressType. |
protected static java.util.Hashtable |
host_status_hash_
Hashtable to allow for conversion from String host status to
epp_HostStatusType. |
protected static java.lang.String[] |
status_to_string_array_
Array to allow for conversion from epp_HostStatusType to
a String representation of the host status. |
Constructor Summary |
protected |
EPPHostBase()
Default constructor. |
protected |
EPPHostBase(java.lang.String xml)
Constructor with XML String
Also initializes the static Hashtables. |
Methods inherited from class com.tucows.oxrs.epp.rtk.xml.EPPXMLBase |
addXMLElement, convertListToArray, convertListToStringArray, createDocRoot, createXMLFromDoc, getCheckResultFor, getDocumentElement, getElement, getNode, getUnspecNode, getXML, initAuthInfoStringToTypeHash, initTransferStatusToTypeHash, parseGenericResult, prepareAuthInfo, prepareCreds, prepareUnspecElement, stringListToXML, transferStatusFromString, transferStatusToString |
Methods inherited from class org.omg.CORBA.portable.ObjectImpl |
_create_request, _create_request, _duplicate, _get_delegate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _invoke, _is_a, _is_equivalent, _is_local, _non_existent, _orb, _release, _releaseReply, _request, _request, _servant_postinvoke, _servant_preinvoke, _set_delegate, _set_policy_override, equals, hashCode, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
host_status_hash_
protected static java.util.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 java.lang.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
host_ip_to_type_hash_
protected static java.util.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_ip_to_string_array_
protected static java.lang.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
EPPHostBase
protected EPPHostBase()
- Default constructor.
Initializes the static Hashtables.
EPPHostBase
protected EPPHostBase(java.lang.String xml)
- Constructor with XML String
Also initializes the static Hashtables.
initHashes
public static void initHashes()
initHostIpToTypeHash
protected static void initHostIpToTypeHash()
initHostStatusHash
protected static void initHostStatusHash()
setCommonAttributes
protected void setCommonAttributes(org.w3c.dom.Element command)
- Sets the common XML attributes required for the host object (eg. xmlns:host, xsi:schemaLocation)
- Parameters:
The
- host action Element (eg Element with tag name "host:create")
hostStatusToString
public static java.lang.String hostStatusToString(epp_HostStatusType status_type)
- Convenience method to get a host status string from an
epp_HostStatusType object.
hostAddressTypeToString
public static java.lang.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(java.lang.String s)
- Convenience method to convert a string status to an instance of
epp_HostStatusType.
Copyright © 2001 - Tucows, Inc.