com.tucows.oxrs.epp0705.rtk.xml

Class EPPContactTransfer

Implemented Interfaces:
epp_Action, epp_ActionOperations, epp_ContactTransfer, epp_ContactTransferOperations, org.omg.CORBA.portable.IDLEntity, org.omg.CORBA.Object

public class EPPContactTransfer
extends EPPContactBase
implements epp_ContactTransfer

Class for the EPP Contact Transfer command and response. Extends the epp_ContactTransfer interface from the EPP IDLs to provide the XML translation for the EPP Contact Transfer command. The Transfer command provides a way of changing the ownership of an object from one sponsor to another. Various transfer operations allow a sponsor to query the current state of a transfer, or request, approve, cancel or reject a transfer. Usage is demonstrated in the com.tucows.oxrs.epp0705.rtk.example.ContactExample class.
See Also:
ContactExample, epp_Action, epp_ContactTransfer, epp_ContactTransferReq, epp_ContactTransferRsp, General EPP Spec and the EPP Contact Spec for more information on the Transfer command

Field Summary

Fields inherited from class com.tucows.oxrs.epp0705.rtk.xml.EPPContactBase

contact_address_type_hash_, contact_status_hash_

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

auth_type_string_to_type_hash_, transfer_status_to_type_hash_, xml_

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

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

Constructor Summary

EPPContactTransfer()
Default constructor
EPPContactTransfer(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_ContactTransferRsp
getResponseData()
Accessor method for the contact transfer response data.
void
setRequestData(epp_ContactTransferReq value)
Accessor method for the contact transfer request data.
String
toXML()
Builds request XML from the request data.

Methods inherited from class com.tucows.oxrs.epp0705.rtk.xml.EPPContactBase

addressToXML, contactStatusFromString, contactStatusToString, getTrnData, initContactAddressTypeHash, initContactStatusHash, initHashes, setCommonAttributes

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

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

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

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

Constructor Details

EPPContactTransfer

public EPPContactTransfer()
Default constructor

EPPContactTransfer

public EPPContactTransfer(String xml)
            throws epp_XMLException,
                   epp_Exception
Constructor with response XML string to automatically parse.
Parameters:
xml - The EPP Contact Transfer 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.epp0705.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_ContactTransferRsp getResponseData()
Accessor method for the contact transfer response data.
Specified by:
getResponseData in interface epp_ContactTransferOperations
Parameters:

setRequestData

public void setRequestData(epp_ContactTransferReq value)
Accessor method for the contact transfer request data. Must be set to for this command.
Specified by:
setRequestData in interface epp_ContactTransferOperations
Parameters:
value - org.openrtk.idl.epp0705.epp_ContactTransferReq

toXML

public String toXML()
            throws epp_XMLException
Builds request XML from the request data. Implemented method from org.openrtk.idl.epp0705.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