Class EPPRgpExtRestore

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

public class EPPRgpExtRestore extends Object implements EPPCodecComponent
The EPPRgpExtRestore is the EPPCodecComponent that knows how to encode and decode RGP restore elements from/to XML and object instance.
See Also:
  • Field Details

  • Constructor Details

    • EPPRgpExtRestore

      public EPPRgpExtRestore()
      Default constructor that will set the op to REQUEST.
    • EPPRgpExtRestore

      public EPPRgpExtRestore(EPPRgpExtReport aReport)
      Creates a restore report extension. The op is set to REPORT.
      Parameters:
      aReport - Report information
  • Method Details

    • encode

      public Element encode(Document aDocument) throws EPPEncodeException
      Append all data from this RGP inf data to the given DOM Document
      Specified by:
      encode in interface EPPCodecComponent
      Parameters:
      aDocument - The DOM Document to append data to
      Returns:
      Encoded DOM Element
      Throws:
      EPPEncodeException - Thrown when errors occur during the encode attempt or if the instance is invalid.
    • decode

      public void decode(Element aElement) throws EPPDecodeException
      Populate the data of this instance with the data stored in the given Element of the DOM tree
      Specified by:
      decode in interface EPPCodecComponent
      Parameters:
      aElement - The root element of the report fragment of XML
      Throws:
      EPPDecodeException - Thrown if any errors occur during decoding.
    • equals

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

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

      public EPPRgpExtReport getReport()
      Get the RGP report instance contained in this RGP restore instance
      Returns:
      the RGP report instance contained in this RGP restore instance
    • setReport

      public void setReport(EPPRgpExtReport report)
      Set the RGP report instance in this RGP restore instance
      Parameters:
      report - the new RGP report instance
    • getOp

      public String getOp()
      Get the value of the current op attibut. Should be either "request" or "report"
      Returns:
      the value of the current op attibute
    • setOp

      public void setOp(String op)
      Set the value of the current op attribute. Should be either "request" or "report". Use the REQUEST or REPORT static final constants contained in this class to set.
      Parameters:
      op - the value of the current op attribute
    • getNamespace

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