Class EPPContactTransferCmd

All Implemented Interfaces:
EPPCodecComponent, EPPMessage, Serializable, Cloneable

public class EPPContactTransferCmd extends EPPTransferCmd
Represents an EPP Contact <transfer> command. The EPP <transfer> command provides a query operation that allows a client to determine real-time status of pending and completed transfer requests. In addition to the standard EPP command elements, the <transfer> command MUST contain an "op"; attribute with value "query", and a <contact:transfer> element that identifies the contact namespace and the location of the contact schema. The <contact:transfer> element MUST contain the following child elements:
  • A <contact:id> element that contains the server-unique identifier of the contact object to be queried. Use getId and setId to get and set the element.
  • An authorization information as described in [EPP]. Use getAuthInfo and setAuthInfo to get and set the element.


EPPContactTransferResp is the concrete EPPReponse associated with EPPContactTransferCmd.

See Also:
  • Constructor Details

    • EPPContactTransferCmd

      public EPPContactTransferCmd()
      Allocates a new EPPContactTransferCmd with default attribute values. the defaults include the following:

      • id is set to null
      • operation is set to to null
      • authorization information is set to to null

      The id, operation, and auth id must be set before invoking encode.
    • EPPContactTransferCmd

      public EPPContactTransferCmd(String aTransId, String aOp, String aId)
      EPPContactTransferCmd constructor that takes the required attributes as arguments.
      Parameters:
      aTransId - Transaction Id associated with the command.
      aOp - One of the EPPCommand.OP_ constants associated with the transfer command.
      aId - Contact id to create.
  • Method Details

    • getNamespace

      public String getNamespace()
      Gets the EPP command Namespace associated with EPPContactTransferCmd.
      Specified by:
      getNamespace in interface EPPCodecComponent
      Specified by:
      getNamespace in interface EPPMessage
      Specified by:
      getNamespace in class EPPCommand
      Returns:
      EPPContactMapFactory.NS
    • getKey

      public String getKey()
      Gets the key for the contact object, which is the contact identifier.
      Overrides:
      getKey in class EPPCommand
      Returns:
      The host identifier if set; null otherwise.
    • doEncode

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

      protected void doDecode(Element aElement) throws EPPDecodeException
      Decode the EPPContactTransferCmd attributes from the aElement DOM Element tree.
      Specified by:
      doDecode in class EPPTransferCmd
      Parameters:
      aElement - Root DOM Element to decode EPPContactTransferCmd from.
      Throws:
      EPPDecodeException - Unable to decode aElement
    • getId

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

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

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

      public Object clone() throws CloneNotSupportedException
      Clone EPPContactTransferCmd.
      Specified by:
      clone in interface EPPCodecComponent
      Overrides:
      clone in class EPPTransferCmd
      Returns:
      clone of EPPContactTransferCmd
      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 EPPCommand
      Returns:
      Indented XML String if successful; ERROR otherwise.
    • getAuthInfo

      public EPPAuthInfo getAuthInfo()
      Get authorization information.
      Returns:
      EPPAuthInfo
    • setAuthInfo

      public void setAuthInfo(EPPAuthInfo newAuthInfo)
      Set authorization information.
      Parameters:
      newAuthInfo - EPPAuthInfo