com.tucows.oxrs.epp0604.rtk.xml

Class EPPHostDelete

Implemented Interfaces:
epp_Action, epp_ActionOperations, epp_HostDelete, epp_HostDeleteOperations, org.omg.CORBA.portable.IDLEntity, org.omg.CORBA.Object

public class EPPHostDelete
extends EPPHostBase
implements epp_HostDelete

Class for the EPP Host Delete command and response. Extends the epp_HostDelete interface from the EPP IDLs to provide the XML translation for the EPP Host Delete command. The Delete command allows a client to destroy an instance of an EPP object in the server. The deletion of an EPP object is subject to constraints as stated in the EPP Spec. the XML translation for the EPP Host Delete command. Usage is demonstrated in the com.tucows.oxrs.epp0604.rtk.example.HostExample class.
See Also:
HostExample, epp_Action, epp_HostDelete, epp_HostDeleteReq, epp_HostDeleteRsp, Host Spec for more information

Field Summary

Fields inherited from class com.tucows.oxrs.epp0604.rtk.xml.EPPHostBase

host_ip_to_type_hash_, host_status_hash_

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

auth_type_string_to_type_hash_, auth_type_to_string_array_, transfer_op_to_string_array_, transfer_status_to_type_hash_, xml_

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

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

Constructor Summary

EPPHostDelete()
Default constructor
EPPHostDelete(String xml)
Constructor with response XML string to automatically parse.

Method Summary

void
fromXML(String xml)
Parses a new XML String and populates the response data member.
epp_HostDeleteRsp
getResponseData()
Accessor method for the host check response data.
void
setRequestData(epp_HostDeleteReq value)
Accessor method for the host delete request data.
String
toXML()
Builds request XML from the request data.

Methods inherited from class com.tucows.oxrs.epp0604.rtk.xml.EPPHostBase

hostAddressTypeToString, hostStatusFromString, hostStatusToString, initHashes, initHostIpToTypeHash, initHostStatusHash, setCommonAttributes

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

addXMLElement, convertListToArray, convertListToStringArray, createDocRoot, createXMLFromDoc, getAvailResultFor, getCheckResultFor, getDocumentElement, getElement, getExtensionNode, getNode, getXML, initAuthInfoStringToTypeHash, initHashes, initTransferStatusToTypeHash, parseGenericCheckResults, parseGenericResult, prepareAuthInfo, prepareCreds, prepareExtensionElement, stringListToXML, transferStatusFromString, transferStatusToString

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

_ids, debug, debug, getDebugLevel, getDebugPrintStream, getRTKProperties, setDebugLevel, setDebugLevel, setDebugPrintStream

Constructor Details

EPPHostDelete

public EPPHostDelete()
Default constructor

EPPHostDelete

public EPPHostDelete(String xml)
            throws epp_XMLException,
                   epp_Exception
Constructor with response XML string to automatically parse.
Parameters:
xml - The EPP Host Delete response XML String
Throws:
epp_XMLException - if the response XML is not parsable or does not contain the expected data
epp_Exception - if the server has responded with an error code

Method Details

fromXML

public void fromXML(String xml)
            throws epp_XMLException,
                   epp_Exception
Parses a new XML String and populates the response data member. Implemented method from org.openrtk.idl.epp0604.epp_Action interface.
Specified by:
fromXML in interface epp_ActionOperations
Parameters:
Throws:
epp_XMLException - if the response XML is not parsable or does not contain the expected data
epp_Exception - if the server has responded with an error code
See Also:
epp_Action

getResponseData

public epp_HostDeleteRsp getResponseData()
Accessor method for the host check response data.
Specified by:
getResponseData in interface epp_HostDeleteOperations
Returns:
value org.openrtk.idl.epp0604.epp_HostDeleteRsp

setRequestData

public void setRequestData(epp_HostDeleteReq value)
Accessor method for the host delete request data. Must be set to for this command.
Specified by:
setRequestData in interface epp_HostDeleteOperations
Parameters:
value - org.openrtk.idl.epp0604.epp_HostDeleteReq

toXML

public String toXML()
            throws epp_XMLException
Builds request XML from the request data. Implemented method from org.openrtk.idl.epp0604.epp_Action interface.
Specified by:
toXML in interface epp_ActionOperations
Throws:
epp_XMLException - if required data is missing

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