Package com.verisign.epp.codec.nv
Class EPPNameVerificationCreateFailed
- java.lang.Object
-
- com.verisign.epp.codec.nv.EPPNameVerificationCreateFailed
-
- All Implemented Interfaces:
EPPCodecComponent
,EPPNameVerificationCreateResult
,java.io.Serializable
,java.lang.Cloneable
public class EPPNameVerificationCreateFailed extends java.lang.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:
EPPNameVerificationCreateCmd
, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ELM_LOCALNAME
XML local name forEPPNameVerificationCreateFailed
.static java.lang.String
ELM_NAME
XML root tag forEPPNameVerificationCreateFailed
.
-
Constructor Summary
Constructors Constructor Description EPPNameVerificationCreateFailed()
EPPNameVerificationCreateFailed
default constructor.EPPNameVerificationCreateFailed(EPPNameVerificationStatus aStatus, java.lang.String aReason)
EPPNameVerificationCreateFailed
constructor that takes the required attributes.EPPNameVerificationCreateFailed(EPPNameVerificationStatus aStatus, java.lang.String aReason, java.lang.String aLanguage)
EPPNameVerificationCreateFailed
constructor that takes the all attributes.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
clone()
CloneEPPNameVerificationCreateFailed
.void
decode(org.w3c.dom.Element aElement)
Decode theEPPNameVerificationCreateFailed
attributes from the aElement DOM Element tree.org.w3c.dom.Element
encode(org.w3c.dom.Document aDocument)
Encode a DOM Element tree from the attributes of theEPPNameVerificationCreateFailed
instance.boolean
equals(java.lang.Object aObject)
Compare an instance ofEPPNameVerificationCreateFailed
with this instance.java.lang.String
getLanguage()
Gets the language of the failure with the default of "en".java.lang.String
getNamespace()
Gets the EPP command namespace associated withEPPNameVerificationCreateFailed
.java.lang.String
getReason()
Gets the reason for the failure.EPPNameVerificationStatus
getStatus()
Gets the verification status.java.lang.String
getType()
Gets the EPP response type associated withEPPNameVerificationCreateFailed
.void
setLanguage(java.lang.String aLanguage)
Sets language of the reason.void
setReason(java.lang.String aReason)
Sets the reason for the failure.void
setStatus(EPPNameVerificationStatus aStatus)
Sets the verification status.java.lang.String
toString()
Implementation ofObject.toString
, which will result in an indented XMLString
representation of the concreteEPPCodecComponent
.
-
-
-
Field Detail
-
ELM_LOCALNAME
public static final java.lang.String ELM_LOCALNAME
XML local name forEPPNameVerificationCreateFailed
.- See Also:
- Constant Field Values
-
ELM_NAME
public static final java.lang.String ELM_NAME
XML root tag forEPPNameVerificationCreateFailed
.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPNameVerificationCreateFailed
public EPPNameVerificationCreateFailed()
EPPNameVerificationCreateFailed
default constructor.
-
EPPNameVerificationCreateFailed
public EPPNameVerificationCreateFailed(EPPNameVerificationStatus aStatus, java.lang.String aReason)
EPPNameVerificationCreateFailed
constructor that takes the required attributes.- Parameters:
aStatus
- The verification statusaReason
- Human-readable reason of the failure
-
EPPNameVerificationCreateFailed
public EPPNameVerificationCreateFailed(EPPNameVerificationStatus aStatus, java.lang.String aReason, java.lang.String aLanguage)
EPPNameVerificationCreateFailed
constructor that takes the all attributes.- Parameters:
aStatus
- The verification statusaReason
- Human-readable reason of the failureaLanguage
- Language of the reason with the default of "en".
-
-
Method Detail
-
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 java.lang.String getReason()
Gets the reason for the failure.- Returns:
- Reason for the failure
-
setReason
public void setReason(java.lang.String aReason)
Sets the reason for the failure.- Parameters:
aReason
- Reason for the failure
-
getLanguage
public java.lang.String getLanguage()
Gets the language of the failure with the default of "en".- Returns:
- Language of the failure
-
setLanguage
public void setLanguage(java.lang.String aLanguage)
Sets language of the reason.- Parameters:
aLanguage
- Language of the reason
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeException
Encode a DOM Element tree from the attributes of theEPPNameVerificationCreateFailed
instance.- Specified by:
encode
in interfaceEPPCodecComponent
- 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(org.w3c.dom.Element aElement) throws EPPDecodeException
Decode theEPPNameVerificationCreateFailed
attributes from the aElement DOM Element tree.- Specified by:
decode
in interfaceEPPCodecComponent
- Parameters:
aElement
- Root DOM Element to decodeEPPNameVerificationCreateFailed
from.- Throws:
EPPDecodeException
- Unable to decode aElement
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
CloneEPPNameVerificationCreateFailed
.- Specified by:
clone
in interfaceEPPCodecComponent
- Overrides:
clone
in classjava.lang.Object
- Returns:
- clone of
EPPNameVerificationCreateFailed
- Throws:
java.lang.CloneNotSupportedException
- standard Object.clone exception
-
getType
public java.lang.String getType()
Gets the EPP response type associated withEPPNameVerificationCreateFailed
.- Returns:
EPPNameVerificationCreateFailed.ELM_NAME
-
getNamespace
public java.lang.String getNamespace()
Gets the EPP command namespace associated withEPPNameVerificationCreateFailed
.- Specified by:
getNamespace
in interfaceEPPCodecComponent
- Returns:
EPPNameVerificationMapFactory.NS
-
equals
public boolean equals(java.lang.Object aObject)
Compare an instance ofEPPNameVerificationCreateFailed
with this instance.- Overrides:
equals
in classjava.lang.Object
- Parameters:
aObject
- Object to compare with.- Returns:
true
if this object is the same as the aObject argument;false
otherwise
-
toString
public java.lang.String toString()
Implementation ofObject.toString
, which will result in an indented XMLString
representation of the concreteEPPCodecComponent
.- Overrides:
toString
in classjava.lang.Object
- Returns:
- Indented XML
String
if successful;ERROR
otherwise.
-
-