Package com.verisign.epp.codec.domain
Class EPPDomainCheckResult
java.lang.Object
com.verisign.epp.codec.domain.EPPDomainCheckResult
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
EPPDomainCheckResult represents the result of an individual domain
name check. The attributes of EPPDomainCheckResult include the domain
name and a boolean value indicating if the domain name is available.
domain reason must be set before invoking encode if the
available flag is set to false.- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor forEPPDomainCheckResult.EPPDomainCheckResult(String aName, boolean aIsAvailable) Constructor forEPPDomainCheckResultthat includes the domain name and the available flag.EPPDomainCheckResult(String aName, boolean aIsAvailable, String aReason) Constructor forEPPDomainCheckResultthat includes the domain name, availability flag, and the availability reason.EPPDomainCheckResult(String aName, boolean aIsAvailable, String aReason, String aLanguage) Constructor forEPPDomainCheckResultthat includes all attributes. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPDomainCheckResult.voidDecode theEPPDomainCheckResultattributes from the aElement DOM Element tree.Encode a DOM Element tree from the attributes of theEPPDomainCheckResultinstance.booleanCompare an instance ofEPPDomainPingRespwith this instance.Gets domain reason.Gets reason language.getName()Gets the domain name associated with the result.Returns the XML namespace associated with theEPPCodecComponent.booleanGets if the domain associated withEPPDomainCheckResultis availability (can it be provisioned or not) at the moment the <check> command was completed.voidsetDomainReason(String aReason) Sets domain reason.voidsetIsAvailable(boolean aIsAvailable) Sets if the domain associated withEPPDomainCheckResultis availability (can it be provisioned or not) at the moment the <check> command was completed.voidsetLanguage(String aLang) Sets language attribute.voidSets the domain name associated with the result.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
ELM_LOCALNAME
XML local name forEPPDomainCheckCmd.- See Also:
-
ELM_NAME
XML Element Name ofEPPDomainCheckCmdroot element.- See Also:
-
-
Constructor Details
-
EPPDomainCheckResult
public EPPDomainCheckResult()Default constructor forEPPDomainCheckResult. the defaults include the following:
- name is set to
null - available is set to
true
The name must be set before invokingencode. - name is set to
-
EPPDomainCheckResult
Constructor forEPPDomainCheckResultthat includes the domain name and the available flag.- Parameters:
aName- Domain name associated with resultaIsAvailable- Is the domain available?
-
EPPDomainCheckResult
Constructor forEPPDomainCheckResultthat includes the domain name, availability flag, and the availability reason.- Parameters:
aName- Domain name associated with resultaIsAvailable- Is the domain available?aReason- Reason that domain is not available
-
EPPDomainCheckResult
Constructor forEPPDomainCheckResultthat includes all attributes.- Parameters:
aName- Domain name associated with resultaIsAvailable- Is the domain available?aReason- Reason that domain is not availableaLanguage- Language of theaReasonvalue.
-
-
Method Details
-
getName
Gets the domain name associated with the result.- Returns:
- Domain name associated with the result if defined;
nullotherwise.
-
setName
Sets the domain name associated with the result.- Parameters:
aName- Domain Name associated with the result.
-
isAvailable
public boolean isAvailable()Gets if the domain associated withEPPDomainCheckResultis availability (can it be provisioned or not) at the moment the <check> command was completed.- Returns:
- Is the domain available? If
false, callgetDomainReason()for inavailability reason.
-
setIsAvailable
public void setIsAvailable(boolean aIsAvailable) Sets if the domain associated withEPPDomainCheckResultis availability (can it be provisioned or not) at the moment the <check> command was completed.- Parameters:
aIsAvailable- Is the domain available?
-
setDomainReason
Sets domain reason. This should be set if the available flag is set tofalse.- Parameters:
aReason- Domain Reason.
-
getDomainReason
Gets domain reason. This should be set if the available flag is set tofalse.- Returns:
- String of domain reason.
-
setLanguage
Sets language attribute.- Parameters:
aLang- Sets domain reason language attribute.
-
getLanguage
Gets reason language.- Returns:
- reason language.
-
encode
Encode a DOM Element tree from the attributes of theEPPDomainCheckResultinstance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the
EPPDomainCheckResultinstance. - Throws:
EPPEncodeException- Unable to encodeEPPDomainCheckResultinstance.
-
decode
Decode theEPPDomainCheckResultattributes from the aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Root DOM Element to decodeEPPDomainCheckResultfrom.- Throws:
EPPDecodeException- Unable to decode aElement.
-
equals
Compare an instance ofEPPDomainPingRespwith this instance. -
clone
CloneEPPDomainCheckResult.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPDomainCheckResult - Throws:
CloneNotSupportedException- standard Object.clone exception
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-