Class EPPContactTransferResp

java.lang.Object
com.verisign.epp.codec.gen.EPPResponse
com.verisign.epp.codec.contact.EPPContactTransferResp
All Implemented Interfaces:
EPPCodecComponent, EPPMessage, Serializable, Cloneable

public class EPPContactTransferResp extends EPPResponse
Represents a <contact:trnData> response to EPPContactTransferCmd. When a <transfer> query command has been processed successfully, the EPP <resData> element MUST contain a child <contact:trnData> element that identifies the contact namespace and the location of the contact schema. The <contact:trnData> element SHALL contain the following child elements:

  • A <contact:id> element that contains the server-unique identifier for the queried contact. Use getId and setId to get and set the element.
  • A <contact:trStatus> element that contains the state of the most recent transfer request. Valid values are "PENDING", "APPROVED", "REJECTED", "AUTO-APPROVED", "AUTO-REJECTED", and "CANCELLED". Use getTrStatus and setTrStatus to get and set the element.
  • A <contact:reID> element that contains the identifier of the client that initiated the transfer request. Use getRequestClient and setRequestClient to get and set the element.
  • A <contact:acID> element that contains the identifier of the client that SHOULD respond to the transfer request. Use getActionClient and setActionClient to get and set the element.
  • A <contact:reDate> element that contains the date and time that the transfer was requested. Use getRequestDate and setRequestDate to get and set the element.
  • A <contact:acDate> element that contains the date and time of a required or completed response. For a PENDING request, the value identifies the date and time by which a response is required before an automated response action MUST be taken by the server. For all other status types, the value identifies the date and time when the request was completed. Use getActionDate and setActionDate to get and set the element.


See Also:
  • Constructor Details

    • EPPContactTransferResp

      public EPPContactTransferResp()
      EPPContactTransferResp default constructor. Must call required setter methods before invoking encode, which include:

      • id - setId
      • request client - setRequestClient
      • action client - setActionClient
      • transfer status - setTransferStatus
      • request date - setReqeustDate
      • action date - setActionDate
      • transaction id - setTransId
    • EPPContactTransferResp

      public EPPContactTransferResp(EPPTransId aTransId, String aId)
      EPPContactTransferResp which takes the id of contact. All other required attributes need to be set using the setter methods, which include:

      • request client - setRequestClient
      • action client - setActionClient
      • transfer status - setTransferStatus
      • request date - setReqeustDate
      • action date - setActionDate
      Parameters:
      aTransId - Transaction Id associated with response.
      aId - Contact id
    • EPPContactTransferResp

      public EPPContactTransferResp(EPPTransId aTransId, String aId, String aStatus)
      EPPContactTransferResp which takes the id of contact. All other required attributes need to be set using the setter methods, which include:

      • request client - setRequestClient
      • action client - setActionClient
      • transfer status - setTransferStatus
      • request date - setReqeustDate
      • action date - setActionDate
      Parameters:
      aTransId - Transaction Id associated with response.
      aId - Contact
      aStatus - Transfer status
  • Method Details

    • getType

      public String getType()
      Gets the EPP response type associated with EPPContactTransferResp.
      Overrides:
      getType in class EPPResponse
      Returns:
      EPPContactTransferResp.ELM_NAME
    • getNamespace

      public String getNamespace()
      Gets the EPP command Namespace associated with EPPContactTransferResp.
      Specified by:
      getNamespace in interface EPPCodecComponent
      Specified by:
      getNamespace in interface EPPMessage
      Overrides:
      getNamespace in class EPPResponse
      Returns:
      EPPContactMapFactory.NS
    • doEncode

      protected Element doEncode(Document aDocument) throws EPPEncodeException
      Encode a DOM Element tree from the attributes of the EPPContactTransferResp instance.
      Overrides:
      doEncode in class EPPResponse
      Parameters:
      aDocument - DOM Document that is being built. Used as an Element factory.
      Returns:
      Root DOM Element representing the EPPContactTransferResp instance.
      Throws:
      EPPEncodeException - Unable to encode EPPContactTransferResp instance.
    • doDecode

      protected void doDecode(Element aElement) throws EPPDecodeException
      Decode the EPPContactTransferResp attributes from the aElement DOM Element tree.
      Overrides:
      doDecode in class EPPResponse
      Parameters:
      aElement - Root DOM Element to decode EPPContactTransferResp from.
      Throws:
      EPPDecodeException - Unable to decode aElement
    • equals

      public boolean equals(Object aObject)
      Compare an instance of EPPContactTransferResp with this instance.
      Overrides:
      equals in class EPPResponse
      Parameters:
      aObject - Object to compare with.
      Returns:
      DOCUMENT ME!
    • clone

      public Object clone() throws CloneNotSupportedException
      Clone EPPContactTransferResp.
      Specified by:
      clone in interface EPPCodecComponent
      Overrides:
      clone in class EPPResponse
      Returns:
      clone of EPPContactTransferResp
      Throws:
      CloneNotSupportedException - standard Object.clone exception
    • toString

      public String toString()
      Implementation of Object.toString, which will result in an indented XML String representation of the concrete EPPCodecComponent.
      Overrides:
      toString in class EPPResponse
      Returns:
      Indented XML String if successful; ERROR otherwise.
    • getId

      public String getId()
      Gets the contact id
      Returns:
      Contact Id if set; null otherwise.
    • setId

      public void setId(String aId)
      Sets the contact id.
      Parameters:
      aId - Contact Id
    • getRequestClient

      public String getRequestClient()
      Gets the identifier of the client that initiated the transfer request.
      Returns:
      The Request Client Id String if defined; null otherwise.
    • setRequestClient

      public void setRequestClient(String aRequestClient)
      Sets the identifier of the client that initiated the transfer request.
      Parameters:
      aRequestClient - The Request Client Id String
    • getActionClient

      public String getActionClient()
      Gets the identifier of the client that SHOULD respond to the transfer request.
      Returns:
      The Request Client Id String if defined; null otherwise.
    • setActionClient

      public void setActionClient(String aActionClient)
      Sets the identifier of the client that SHOULD respond to the transfer request.
      Parameters:
      aActionClient - The Action Client Id String
    • getRequestDate

      public Date getRequestDate()
      Gets the date and time that the transfer was requested.
      Returns:
      The request date and time if defined; null otherwise.
    • setRequestDate

      public void setRequestDate(Date aRequestDate)
      Sets the date and time that the transfer was requested.
      Parameters:
      aRequestDate - The request date and time
    • getActionDate

      public Date getActionDate()
      Gets the date and time of a required or completed response.
      Returns:
      The required or complete response data and time if defined; null otherwise.
    • setActionDate

      public void setActionDate(Date aActionDate)
      Sets the date and time of a required or completed response.
      Parameters:
      aActionDate - The required or complete response data and time.
    • getTransferStatus

      public String getTransferStatus()
      Get transfer status. This should be one of the EPPResponse.TRANSFER constants.
      Returns:
      String
    • setTransferStatus

      public void setTransferStatus(String newTrStatus)
      Set transfer status. This should be one of the EPPResponse.TRANSFER constants.
      Parameters:
      newTrStatus - The transfer status String (EPPResponse.TRANSFER)