Class EPPLaunchInfData

java.lang.Object
com.verisign.epp.codec.launch.EPPLaunchInfData
All Implemented Interfaces:
EPPCodecComponent, Serializable, Cloneable

public class EPPLaunchInfData extends Object implements EPPCodecComponent
Extension to the domain info response to return the launch phase application or registration information. The EPPLaunchInfo domain info command extension defines the application or registration information to return.
See Also:
  • Field Details

    • ELM_LOCALNAME

      public static final String ELM_LOCALNAME
      Constant for the launch phase info response extension local name
      See Also:
    • ELM_NAME

      public static final String ELM_NAME
      Constant for the launch phase info response extension tag
      See Also:
  • Constructor Details

    • EPPLaunchInfData

      public EPPLaunchInfData()
      Create an EPPLaunchInfData instance
    • EPPLaunchInfData

      public EPPLaunchInfData(EPPLaunchPhase aPhase, List<EPPMark> aMarks)
      Create a EPPLaunchInfData instance for a registration with the phase and list of marks.
      Parameters:
      aPhase - The phase during which the registration was submitted or is associated with.
      aMarks - List of marks
    • EPPLaunchInfData

      public EPPLaunchInfData(EPPLaunchPhase aPhase, EPPMark aMark)
      Create a EPPLaunchInfData instance for a registration with the phase and an individual mark.
      Parameters:
      aPhase - The phase during which the registration was submitted or is associated with.
      aMark - An individual mark
    • EPPLaunchInfData

      public EPPLaunchInfData(EPPLaunchPhase aPhase, String aApplicationId, EPPLaunchStatus aStatus)
      Create a EPPLaunchInfData instance for an application with the phase, application identifier, and application status values.
      Parameters:
      aPhase - The phase during which the application was submitted or is associated with.
      aApplicationId - Application identifier of the returned application
      aStatus - Status of the launch application
    • EPPLaunchInfData

      public EPPLaunchInfData(EPPLaunchPhase aPhase, String aApplicationId, EPPLaunchStatus aStatus, List<EPPMark> aMarks)
      Create a EPPLaunchInfData instance for an application with the phase, application identifier, application status, and list of marks values.
      Parameters:
      aPhase - The phase during which the application was submitted or is associated with.
      aApplicationId - Application identifier of the returned application
      aStatus - Status of the launch application
      aMarks - List of marks
    • EPPLaunchInfData

      public EPPLaunchInfData(EPPLaunchPhase aPhase, String aApplicationId, EPPLaunchStatus aStatus, EPPMark aMark)
      Create a EPPLaunchInfData instance for an application with the phase, application identifier, application status, and an individual of mark values.
      Parameters:
      aPhase - The phase during which the application was submitted or is associated with.
      aApplicationId - Application identifier of the returned application
      aStatus - Status of the launch application
      aMark - An individual mark
  • Method Details

    • clone

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

      public Element encode(Document aDocument) throws EPPEncodeException
      Sets all this instance's data in the given XML document
      Specified by:
      encode in interface EPPCodecComponent
      Parameters:
      aDocument - a DOM Document to attach data to.
      Returns:
      The root element of this component.
      Throws:
      EPPEncodeException - Thrown if any errors prevent encoding.
    • decode

      public void decode(Element aElement) throws EPPDecodeException
      Decode the EPPLaunchInfData component
      Specified by:
      decode in interface EPPCodecComponent
      Parameters:
      aElement - Element to decode from
      Throws:
      EPPDecodeException - On decoding error
    • equals

      public boolean equals(Object aObject)
      implements a deep EPPLaunchInfData compare.
      Overrides:
      equals in class Object
      Parameters:
      aObject - EPPLaunchInfData instance to compare with
      Returns:
      true if equal false otherwise
    • getApplicationId

      public String getApplicationId()
      Gets the application identifier of the launch application.
      Returns:
      Application identifier if defined; null otherwise.
    • setApplicationId

      public void setApplicationId(String aApplicationId)
      Sets the application identifier of the launch application.
      Parameters:
      aApplicationId - Application identifier of the launch application
    • getPhase

      public EPPLaunchPhase getPhase()
      Gets phase during which the application or registration was submitted or is associated with.
      Returns:
      phase during which the application or registration was submitted or is associated with if defined; null otherwise.
    • setPhase

      public void setPhase(EPPLaunchPhase aPhase)
      Sets the phase during which the application or registration was submitted or is associated with.
      Parameters:
      aPhase - Phase during which the application or registration was submitted or is associated with
    • getStatus

      public EPPLaunchStatus getStatus()
      Gets the application status.
      Returns:
      Launch status if defined; null otherwise.
    • setStatus

      public void setStatus(EPPLaunchStatus aStatus)
      Sets the application status.
      Parameters:
      aStatus - The application status
    • setStatus

      public void setStatus(String aStatusString)
      Sets the status with one of the EPPLaunchStatus STATUS constants.
      Parameters:
      aStatusString - One of the EPPLaunchStatus STATUS constants.
    • setPhase

      public void setPhase(String aPhaseString)
      Sets the phase with one of the EPPLaunchPhase PHASE constants.
      Parameters:
      aPhaseString - One of the EPPLaunchPhase PHASE constants.
    • setMark

      public void setMark(EPPMark aMark)
      Sets an individual mark.
      Parameters:
      aMark - An individual mark
    • getMark

      public EPPMark getMark()
      Gets an individual mark. If there are more then one mark in the marks list, only the first mark will be returned.
      Returns:
      Gets the individual mark
    • addMark

      public void addMark(EPPMark aMark)
      Add a mark to the list of marks.
      Parameters:
      aMark - Mark to add to list
    • getMarks

      public List<EPPMark> getMarks()
      Gets the list of marks
      Returns:
      List of marks if defined; empty list otherwise.
    • setMarks

      public void setMarks(List<EPPMark> aMarks)
      Sets the list of marks.
      Parameters:
      aMarks - List of marks
    • 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 Object
      Returns:
      Indented XML String if successful; ERROR otherwise.
    • getNamespace

      public String getNamespace()
      Returns the XML namespace associated with the EPPCodecComponent.
      Specified by:
      getNamespace in interface EPPCodecComponent
      Returns:
      XML namespace for the EPPCodecComponent.