Class EPPNameVerificationCreateFailed

java.lang.Object
com.verisign.epp.codec.nv.EPPNameVerificationCreateFailed
All Implemented Interfaces:
EPPCodecComponent, EPPNameVerificationCreateResult, Serializable, Cloneable

public class EPPNameVerificationCreateFailed extends Object implements EPPNameVerificationCreateResult
Create response for a successful domain name verification, which results in the return of a digitally signed domain verification code.
See Also:
  • Field Details

    • ELM_LOCALNAME

      public static final String ELM_LOCALNAME
      XML local name for EPPNameVerificationCreateFailed.
      See Also:
    • ELM_NAME

      public static final String ELM_NAME
      XML root tag for EPPNameVerificationCreateFailed.
      See Also:
  • Constructor Details

    • EPPNameVerificationCreateFailed

      public EPPNameVerificationCreateFailed()
      EPPNameVerificationCreateFailed default constructor.
    • EPPNameVerificationCreateFailed

      public EPPNameVerificationCreateFailed(EPPNameVerificationStatus aStatus, String aReason)
      EPPNameVerificationCreateFailed constructor that takes the required attributes.
      Parameters:
      aStatus - The verification status
      aReason - Human-readable reason of the failure
    • EPPNameVerificationCreateFailed

      public EPPNameVerificationCreateFailed(EPPNameVerificationStatus aStatus, String aReason, String aLanguage)
      EPPNameVerificationCreateFailed constructor that takes the all attributes.
      Parameters:
      aStatus - The verification status
      aReason - Human-readable reason of the failure
      aLanguage - Language of the reason with the default of "en".
  • Method Details

    • getStatus

      public EPPNameVerificationStatus getStatus()
      Gets the verification status.
      Returns:
      Verification status
    • setStatus

      public void setStatus(EPPNameVerificationStatus aStatus)
      Sets the verification status.
      Parameters:
      aStatus - The verification status
    • getReason

      public String getReason()
      Gets the reason for the failure.
      Returns:
      Reason for the failure
    • setReason

      public void setReason(String aReason)
      Sets the reason for the failure.
      Parameters:
      aReason - Reason for the failure
    • getLanguage

      public String getLanguage()
      Gets the language of the failure with the default of "en".
      Returns:
      Language of the failure
    • setLanguage

      public void setLanguage(String aLanguage)
      Sets language of the reason.
      Parameters:
      aLanguage - Language of the reason
    • encode

      public Element encode(Document aDocument) throws EPPEncodeException
      Encode a DOM Element tree from the attributes of the EPPNameVerificationCreateFailed instance.
      Specified by:
      encode in interface EPPCodecComponent
      Parameters:
      aDocument - DOM Document that is being built. Used as an Element factory.
      Returns:
      Element Root DOM Element representing the EPPNameVerificationCreateFailed instance.
      Throws:
      EPPEncodeException - Unable to encode EPPNameVerificationCreateFailed instance.
    • decode

      public void decode(Element aElement) throws EPPDecodeException
      Decode the EPPNameVerificationCreateFailed attributes from the aElement DOM Element tree.
      Specified by:
      decode in interface EPPCodecComponent
      Parameters:
      aElement - Root DOM Element to decode EPPNameVerificationCreateFailed from.
      Throws:
      EPPDecodeException - Unable to decode aElement
    • clone

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

      public String getType()
      Gets the EPP response type associated with EPPNameVerificationCreateFailed.
      Returns:
      EPPNameVerificationCreateFailed.ELM_NAME
    • getNamespace

      public String getNamespace()
      Gets the EPP command namespace associated with EPPNameVerificationCreateFailed.
      Specified by:
      getNamespace in interface EPPCodecComponent
      Returns:
      EPPNameVerificationMapFactory.NS
    • equals

      public boolean equals(Object aObject)
      Compare an instance of EPPNameVerificationCreateFailed with this instance.
      Overrides:
      equals in class Object
      Parameters:
      aObject - Object to compare with.
      Returns:
      true if this object is the same as the aObject argument; false otherwise
    • 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.