Class EPPRegistryCreateResp

java.lang.Object
com.verisign.epp.codec.gen.EPPResponse
com.verisign.epp.codec.registry.v02.EPPRegistryCreateResp
All Implemented Interfaces:
EPPCodecComponent, EPPMessage, Serializable, Cloneable

public class EPPRegistryCreateResp extends EPPResponse
Represents an EPP Registry <registry:creData> response to a EPPRegistryCreateCmd. When a <crate> command has been processed successfully, the EPP <resData> element MUST contain a child <registry:creData> element that identifies the registry namespace and the location of the registry schema. The <registry:creData> element contains the following child elements:

  • A <registry:name> element that contains the fully qualified name of zone object that has been created. Use getName and setName to get and set the element.
  • A <registry.crDate> element that contains the date and time of zone object creation. Use getCreateDate and setCreateDate to get and set the element.


See Also:
  • Field Details

  • Constructor Details

    • EPPRegistryCreateResp

      public EPPRegistryCreateResp()
      EPPRegistryCreateResp default constructor. Must call required setter methods before encode. the defaults include the following:

      • name is set to null
      • createDate date is set to null

      name must be set before invoking encode.
    • EPPRegistryCreateResp

      public EPPRegistryCreateResp(EPPTransId aTransId, String aName)
      EPPRegistryCreateResp constructor that takes the aLabel name value as a parameter. The creation date must be set before invoking #encode(Document).
      Parameters:
      aTransId - transaction Id associated with response
      aName - aLabel name of zone object
    • EPPRegistryCreateResp

      public EPPRegistryCreateResp(EPPTransId aTransId, EPPRegistryZoneName aName)
      EPPRegistryCreateResp constructor that takes the name value as a parameter. The creation date must be set before invoking #encode(Document).
      Parameters:
      aTransId - transaction Id associated with response
      aName - name of zone object
    • EPPRegistryCreateResp

      public EPPRegistryCreateResp(EPPTransId aTransId, String aName, Date aCreateDate)
      EPPRegistryCreateResp constructor that takes required values as parameters.
      Parameters:
      aTransId - transaction Id associated with response
      aName - aLabel name of zone object
      aCreateDate - creation date of the zone object
    • EPPRegistryCreateResp

      public EPPRegistryCreateResp(EPPTransId aTransId, EPPRegistryZoneName aName, Date aCreateDate)
      EPPRegistryCreateResp constructor that takes required values as parameters.
      Parameters:
      aTransId - transaction Id associated with response
      aName - name of zone object
      aCreateDate - creation date of the zone object
  • Method Details

    • getType

      public String getType()
      Gets the EPP command type associated with EPPRegistryCreateResp.
      Overrides:
      getType in class EPPResponse
      Returns:
      EPPRegistryCreateResp.ELM_NAME
    • getNamespace

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

      public boolean equals(Object aObject)
      Compare an instance of EPPRegistryCreateResp with this instance.
      Overrides:
      equals in class EPPResponse
      Parameters:
      aObject - Object to compare with.
      Returns:
      true if this object is the same as the aObject argument; false otherwise
    • clone

      public Object clone() throws CloneNotSupportedException
      Clone EPPRegistryCreateResp.
      Specified by:
      clone in interface EPPCodecComponent
      Overrides:
      clone in class EPPResponse
      Returns:
      clone of EPPRegistryCreateResp
      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.
    • doEncode

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

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

      public EPPRegistryZoneName getName()
      Gets the zone name.
      Returns:
      Zone name if set; null otherwise.
    • setName

      public void setName(EPPRegistryZoneName aName)
      Sets the zone name
      Parameters:
      aName - Zone name
    • setName

      public void setName(String aName)
      Sets the aLabel zone name
      Parameters:
      aName - aLabel zone name
    • getCreateDate

      public Date getCreateDate()
      Get the zone object creation date.
      Returns:
      zone object creation date
    • setCreateDate

      public void setCreateDate(Date createDate)
      Set the zone object creation date.
      Parameters:
      createDate - zone object creation date