Class EPPChangeInfoCmd

All Implemented Interfaces:
EPPCodecComponent, EPPMessage, Serializable, Cloneable

public class EPPChangeInfoCmd extends EPPInfoCmd
Represents an EPP <change:info> command that is used to retrieve an EPP Change Request object. The <change:info> element MUST contain the following child elements:

  • A <change:requestID> element that contains the Request Id. Use getRequestId and setRequestId to get and set the element.

EPPChangeInfoResp is the concrete EPPReponse associated with EPPChangeInfoCmd.

See Also:
  • Constructor Details

    • EPPChangeInfoCmd

      public EPPChangeInfoCmd()
    • EPPChangeInfoCmd

      public EPPChangeInfoCmd(String aTransId)
    • EPPChangeInfoCmd

      public EPPChangeInfoCmd(String aTransId, String requestId)
  • Method Details

    • clone

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

      public boolean equals(Object o)
      Compare an instance of EPPChangeInfoCmd with this instance
      Overrides:
      equals in class EPPInfoCmd
      Parameters:
      o - Object to compare with.
      Returns:
      true if equal; false otherwise.
    • getNamespace

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

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

      public String getRequestId()
    • setRequestId

      public void setRequestId(String requestId)
    • 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.
    • doDecode

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

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