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.StringELM_LOCALNAMEXML local name forEPPNameVerificationCreateFailed.static java.lang.StringELM_NAMEXML root tag forEPPNameVerificationCreateFailed.
-
Constructor Summary
Constructors Constructor Description EPPNameVerificationCreateFailed()EPPNameVerificationCreateFaileddefault constructor.EPPNameVerificationCreateFailed(EPPNameVerificationStatus aStatus, java.lang.String aReason)EPPNameVerificationCreateFailedconstructor that takes the required attributes.EPPNameVerificationCreateFailed(EPPNameVerificationStatus aStatus, java.lang.String aReason, java.lang.String aLanguage)EPPNameVerificationCreateFailedconstructor that takes the all attributes.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()CloneEPPNameVerificationCreateFailed.voiddecode(org.w3c.dom.Element aElement)Decode theEPPNameVerificationCreateFailedattributes from the aElement DOM Element tree.org.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)Encode a DOM Element tree from the attributes of theEPPNameVerificationCreateFailedinstance.booleanequals(java.lang.Object aObject)Compare an instance ofEPPNameVerificationCreateFailedwith this instance.java.lang.StringgetLanguage()Gets the language of the failure with the default of "en".java.lang.StringgetNamespace()Gets the EPP command namespace associated withEPPNameVerificationCreateFailed.java.lang.StringgetReason()Gets the reason for the failure.EPPNameVerificationStatusgetStatus()Gets the verification status.java.lang.StringgetType()Gets the EPP response type associated withEPPNameVerificationCreateFailed.voidsetLanguage(java.lang.String aLanguage)Sets language of the reason.voidsetReason(java.lang.String aReason)Sets the reason for the failure.voidsetStatus(EPPNameVerificationStatus aStatus)Sets the verification status.java.lang.StringtoString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation 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()
EPPNameVerificationCreateFaileddefault constructor.
-
EPPNameVerificationCreateFailed
public EPPNameVerificationCreateFailed(EPPNameVerificationStatus aStatus, java.lang.String aReason)
EPPNameVerificationCreateFailedconstructor 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)
EPPNameVerificationCreateFailedconstructor 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 EPPEncodeExceptionEncode a DOM Element tree from the attributes of theEPPNameVerificationCreateFailedinstance.- Specified by:
encodein 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 EPPDecodeExceptionDecode theEPPNameVerificationCreateFailedattributes from the aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Root DOM Element to decodeEPPNameVerificationCreateFailedfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPNameVerificationCreateFailed.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein 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:
getNamespacein interfaceEPPCodecComponent- Returns:
EPPNameVerificationMapFactory.NS
-
equals
public boolean equals(java.lang.Object aObject)
Compare an instance ofEPPNameVerificationCreateFailedwith this instance.- Overrides:
equalsin classjava.lang.Object- Parameters:
aObject- Object to compare with.- Returns:
trueif this object is the same as the aObject argument;falseotherwise
-
toString
public java.lang.String toString()
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.- Overrides:
toStringin classjava.lang.Object- Returns:
- Indented XML
Stringif successful;ERRORotherwise.
-
-