Class EPPTransferCmd

java.lang.Object
com.verisign.epp.codec.gen.EPPCommand
com.verisign.epp.codec.gen.EPPTransferCmd
All Implemented Interfaces:
EPPCodecComponent, EPPMessage, Serializable, Cloneable
Direct Known Subclasses:
EPPContactTransferCmd, EPPDefRegTransferCmd, EPPDomainTransferCmd, EPPEmailFwdTransferCmd, EPPNameWatchTransferCmd

public abstract class EPPTransferCmd extends EPPCommand
The EPP <transfer> command provides a query operation that allows a client to determine real-time status of pending and completed transfer requests. The elements needed to identify an object that is the subject of a transfer request are object-specific, so the child elements of the <transfer> query command are specified using the EPP extension framework. In addition to the standard EPP command elements, the <transfer> command SHALL contain an op attribute with value query, and the following child elements: An object-specific <obj:transfer> element that identifies the object whose transfer status is requested.

EPPTransferCmd is an abstract EPP command class that represents a transfer operation. A command mapping transfer command extends EPPTransferCmd. For example, EPPDomainTransferCmd is a EPPTransferCmd that implements the Domain Transfer Command Mapping. The different types of transfer operations can be one of the EPPCommand.OP_ constants.
See Also:
  • Field Details

    • op

      protected String op
      Operation "op" associated with the EPPTransferCmd. This should be equal to one of the EPPCommand.OP_ constants.
  • Constructor Details

    • EPPTransferCmd

      public EPPTransferCmd()
      Default constructor. Will set Authorization Id to null.
    • EPPTransferCmd

      public EPPTransferCmd(String aTransId, String aOp)
      EPPTransferCmd that takes all required attributes as arguments.
      Parameters:
      aTransId - Transaction Id associated with command.
      aOp - One of the EPPCommand.OP_ constants associated with the transfer command.
  • Method Details

    • getType

      public String getType()
      Gets the EPP command type associated with EPPTransferCmd.
      Specified by:
      getType in class EPPCommand
      Returns:
      EPPCommand.TYPE_TRANSFER
    • getOp

      public String getOp()
      Gets the EPP command operation attribute associated with EPPTransferCmd.
      Overrides:
      getOp in class EPPCommand
      Returns:
      One of the EPPCommand.OP_ constants associated with the transfer command.
    • setOp

      public void setOp(String aOp)
      Sets the EPP command operation attribute associated with EPPTransferCmd.
      Parameters:
      aOp - One of the EPPCommand.OP_ constants associated with the transfer command.
    • equals

      public boolean equals(Object aObject)
      Compares an instance of EPPTransferCmd with this instance.
      Overrides:
      equals in class EPPCommand
      Parameters:
      aObject - Object to compare with.
      Returns:
      true if equal; false otherwise
    • doGenEncode

      protected Element doGenEncode(Document aDocument) throws EPPEncodeException
      Encodes a DOM Element tree from the attributes of the EPPTransferCmd instance. This method is a member of the Template Design Pattern. EPPCommand.encode is a Template Method and this method is a Primitive Operation within the Template Method Design Pattern.
      Specified by:
      doGenEncode in class EPPCommand
      Parameters:
      aDocument - DOM Document that is being built. Used as an Element factory.
      Returns:
      Root DOM Element representing the EPPTransferCmd instance.
      Throws:
      EPPEncodeException - Unable to encode EPPTransferCmd instance.
    • doGenDecode

      protected void doGenDecode(Element aElement) throws EPPDecodeException
      Decodes the EPPTransferCmd attributes from the aElement DOM Element tree. This method is a member of the Template Design Pattern. EPPCommand.decode is a Template Method and this method is a Primitive Operation within the Template Method Design Pattern.
      Specified by:
      doGenDecode in class EPPCommand
      Parameters:
      aElement - Root DOM Element to decode EPPTransferCmd from.
      Throws:
      EPPDecodeException - Unable to decode aElement
    • clone

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

      protected abstract Element doEncode(Document aDocument) throws EPPEncodeException
      Must be defined by EPPTransferCmd extensions (Command Mappings) to encode the attributes to a DOM Element tree. doGenEncode is a Template Method and this method is a Primitive Operation within the Template Method Design Pattern.
      Parameters:
      aDocument - DOM Document that is being built. Used as an Element factory.
      Returns:
      Root DOM Element representing the EPPTransferCmd extension instance.
      Throws:
      EPPEncodeException - Unable to encode EPPTransferCmd extension instance.
    • doDecode

      protected abstract void doDecode(Element aElement) throws EPPDecodeException
      Must be defined by EPPTransferCmd extensions (Command Mappings) to decode the attributes to a DOM Element tree. doGenDecode is a Template Method and this method is a Primitive Operation within the Template Method Design Pattern.
      Parameters:
      aElement - Root DOM Element representing the EPPTransferCmd extension instance.
      Throws:
      EPPDecodeException - Unable to decode aElement.