Package com.verisign.epp.codec.host
Class EPPHostCheckResult
java.lang.Object
com.verisign.epp.codec.host.EPPHostCheckResult
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
EPPHostCheckResult represents the result of an individual host name
check. The attributes of EPPHostCheckResult include the domain name
and a boolean value indicating if the domain name is available.
host reason must be set before invoking encode if the
available flag is set to false.- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor forEPPHostCheckResult.EPPHostCheckResult(String aName, boolean isAvailable) Constructor forEPPHostCheckResultthat includes the domain name and the is known flag. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPHostCheckResult.voidDecode theEPPHostCheckResultattributes from the aElement DOM Element tree.Encode a DOM Element tree from the attributes of theEPPHostCheckResultinstance.booleanCompare an instance ofEPPHostCheckResultwith this instance.Gets host reason.Sets domain reason to check.getName()Gets the domain name associated with the result.Returns the XML namespace associated with theEPPCodecComponent.booleanGets if the domain associated withEPPHostCheckResultis availability (can it be provisioned or not) at the moment the <check> command was completed.voidsetHostReason(String aReason) Sets host reason.voidsetIsAvailable(boolean aIsAvailable) Sets if the host associated withEPPHostCheckResultis 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 forEPPHostCheckResult.- See Also:
-
ELM_NAME
XML Element Name ofEPPHostCheckResultroot element.- See Also:
-
-
Constructor Details
-
EPPHostCheckResult
public EPPHostCheckResult()Default constructor forEPPHostCheckResult. the defaults include the following:
- name is set to
null - known is set to
false
The name must be set before invokingencode. - name is set to
-
EPPHostCheckResult
Constructor forEPPHostCheckResultthat includes the domain name and the is known flag.- Parameters:
aName- Domain name associated with resultisAvailable- Is the domain name available?
-
-
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 withEPPHostCheckResultis availability (can it be provisioned or not) at the moment the <check> command was completed.- Returns:
- Is the host available? If
false, callgetHostReason()for unavailability reason.
-
setIsAvailable
public void setIsAvailable(boolean aIsAvailable) Sets if the host associated withEPPHostCheckResultis availability (can it be provisioned or not) at the moment the <check> command was completed.- Parameters:
aIsAvailable- Is the host available?
-
setHostReason
Sets host reason.- Parameters:
aReason- Host Reason.
-
getHostReason
Gets host reason.- Returns:
- String of host reason.
-
setLanguage
Sets language attribute.- Parameters:
aLang- Sets value of language attribute.
-
getLanguage
Sets domain reason to check.- Returns:
- String of language attribute.
-
encode
Encode a DOM Element tree from the attributes of theEPPHostCheckResultinstance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the
EPPHostCheckResultinstance. - Throws:
EPPEncodeException- Unable to encodeEPPHostCheckResultinstance.
-
decode
Decode theEPPHostCheckResultattributes from the aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Root DOM Element to decodeEPPHostCheckResultfrom.- Throws:
EPPDecodeException- Unable to decode aElement.
-
equals
Compare an instance ofEPPHostCheckResultwith this instance. -
clone
CloneEPPHostCheckResult.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPHostCheckResult - 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.
-