Class EPPChangeCreateCmd

All Implemented Interfaces:
EPPCodecComponent, EPPMessage, Serializable, Cloneable

public class EPPChangeCreateCmd extends EPPCreateCmd
Represents an EPP <change:create> command that is used to create an EPP Change Request object. The <change:create> element MUST contain the following child elements:

  • A <change:requestID> element that contains the Request Id. Use getRequest and setRequest to get and set the element.
  • A <change:category> element that contains the Request Category. Use getCategory and setCategory to get and set the element.
  • A <desc> element that contains the Request Description. Use getDescription and setDescription to get and set the element.

See Also:
  • Constructor Details

    • EPPChangeCreateCmd

      public EPPChangeCreateCmd()
    • EPPChangeCreateCmd

      public EPPChangeCreateCmd(String aTransId)
    • EPPChangeCreateCmd

      public EPPChangeCreateCmd(String requestId, String category, String description)
    • EPPChangeCreateCmd

      public EPPChangeCreateCmd(String aTransId, String requestId, String category, String description)
    • EPPChangeCreateCmd

      public EPPChangeCreateCmd(String aTransId, String requestId, String priority, String category, String description)
    • EPPChangeCreateCmd

      public EPPChangeCreateCmd(String aTransId, String requestId, String priority, List categories, String description)
  • Method Details

    • addCategory

      public void addCategory(String category)
    • clearCategories

      public void clearCategories()
    • clone

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

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

      public List getCategories()
    • getDescription

      public String getDescription()
    • getNamespace

      public String getNamespace()
      Gets the EPP command Namespace associated with EPPChangeCreateCmd.
      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.
    • getPriority

      public String getPriority()
    • getRequestId

      public String getRequestId()
    • setCategories

      public void setCategories(List categories)
    • setDescription

      public void setDescription(String description)
    • setPriority

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