Class EPPChangeCheckCmd

All Implemented Interfaces:
EPPCodecComponent, EPPMessage, Serializable, Cloneable

public class EPPChangeCheckCmd extends EPPCheckCmd
Represents an EPP <change:check> command that is used to determine the existence of an EPP Change Request object. The <change:check> 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.

EPPChangeCheckResp is the concrete EPPReponse associated with EPPChangecheckCmd.

See Also:
  • Constructor Details

    • EPPChangeCheckCmd

      public EPPChangeCheckCmd()
    • EPPChangeCheckCmd

      public EPPChangeCheckCmd(String aTransId)
    • EPPChangeCheckCmd

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

    • addRequestId

      public void addRequestId(String requestId)
    • clearRequestIds

      public void clearRequestIds()
    • clone

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

      public boolean equals(Object o)
      Compare an instance of EPPChangeCheckCmd with this instance
      Overrides:
      equals in class EPPCheckCmd
      Parameters:
      o - Object to compare with.
      Returns:
      DOCUMENT ME!
    • getNamespace

      public String getNamespace()
      Gets the EPP command Namespace associated with EPPChangeCheckCmd.
      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 with a single value; null otherwise.
    • getRequestIds

      public ArrayList getRequestIds()
    • setRequestIds

      public void setRequestIds(ArrayList requestIds)
    • 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 EPPChangeCheckCmd attributes from the aElement DOM Element tree.
      Specified by:
      doDecode in class EPPCheckCmd
      Parameters:
      aElement - Root DOM Element to decode EPPChangeCheckCmd 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 EPPChangeCheckCmd instance.
      Specified by:
      doEncode in class EPPCheckCmd
      Parameters:
      aDocument - DOM Document that is being built. Used as an Element factory.
      Returns:
      Root DOM Element representing the EPPChangeCheckCmd instance.
      Throws:
      EPPEncodeException - Unable to encode EPPChangeCheckCmd instance.