Class EPPContactCreateResp

java.lang.Object
com.verisign.epp.codec.gen.EPPResponse
com.verisign.epp.codec.contact.EPPContactCreateResp
All Implemented Interfaces:
EPPCodecComponent, EPPMessage, Serializable, Cloneable

public class EPPContactCreateResp extends EPPResponse
Represents a <contact:creData> response to an EPPContactCreateCmd. When a <create> command has been processed successfully, the EPP <resData> element MUST contain a child <contact:creData> element that identifies the contact namespace and the location of the contact schema. The <contact:creData> element contains the following child elements:
  • A <contact:id> element that contains the server-unique identifier for the contact to be deleted. Use getId and setId to get and set the element.
  • A <domain.crDate> element that contains the date and time of domain object creation. Use getCreationDate and setCreationDate to get and set the element.


See Also:
  • Constructor Details

    • EPPContactCreateResp

      public EPPContactCreateResp()
      EPPContactCreateResp default constructor. The id is initialized to null. The id and creation date must be set before invoking encode.
    • EPPContactCreateResp

      public EPPContactCreateResp(EPPTransId aTransId, String aId, Date aCreationDate)
      EPPContactCreateResp constructor that takes the contact id as an argument.
      Parameters:
      aTransId - Transaction Id associated with command.
      aId - Contact id to delete.
      aCreationDate - Creation date
  • Method Details

    • getNamespace

      public String getNamespace()
      Gets the EPP command Namespace associated with EPPContactCreateResp.
      Specified by:
      getNamespace in interface EPPCodecComponent
      Specified by:
      getNamespace in interface EPPMessage
      Overrides:
      getNamespace in class EPPResponse
      Returns:
      EPPContactMapFactory.NS
    • getCreationDate

      public Date getCreationDate()
      Get creation date.
      Returns:
      java.util.Date
    • setCreationDate

      public void setCreationDate(Date newCrDate)
      Set creation date.
      Parameters:
      newCrDate - java.util.Date
    • doEncode

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

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

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

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

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

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