Class EPPRgpExtStatus

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

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

  • Constructor Details

    • EPPRgpExtStatus

      public EPPRgpExtStatus()
      Create a new instance of EPPRgpExtStatus
    • EPPRgpExtStatus

      public EPPRgpExtStatus(String aStatus)
      Create a new instance of EPPRgpExtStatus with the given status
      Parameters:
      aStatus - the status value to use for this instance. Should use one of the static constants defined for this class as a value.
  • 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 EPPRgpExtStatus compare.
      Overrides:
      equals in class Object
      Parameters:
      aObject - EPPRgpExtStatus instance to compare with
      Returns:
      true if equal false otherwise
    • clone

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

      public String getMessage()
    • setMessage

      public void setMessage(String message)
    • getStatus

      public String getStatus()
    • setStatus

      public void setStatus(String status)
    • getLang

      public String getLang()
    • setLang

      public void setLang(String lang)
    • getNamespace

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