Package com.verisign.epp.codec.host
Class EPPHostCheckResult
- java.lang.Object
-
- com.verisign.epp.codec.host.EPPHostCheckResult
-
- All Implemented Interfaces:
EPPCodecComponent,java.io.Serializable,java.lang.Cloneable
public class EPPHostCheckResult extends java.lang.Object implements EPPCodecComponent
EPPHostCheckResultrepresents the result of an individual host name check. The attributes ofEPPHostCheckResultinclude the domain name and a boolean value indicating if the domain name is available.host reasonmust be set before invokingencodeif the available flag is set tofalse.- See Also:
EPPHostCheckResp, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EPPHostCheckResult()Default constructor forEPPHostCheckResult.EPPHostCheckResult(java.lang.String aName, boolean isAvailable)Constructor forEPPHostCheckResultthat includes the domain name and the is known flag.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.Objectclone()CloneEPPHostCheckResult.voiddecode(org.w3c.dom.Element aElement)Decode theEPPHostCheckResultattributes from the aElement DOM Element tree.org.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)Encode a DOM Element tree from the attributes of theEPPHostCheckResultinstance.booleanequals(java.lang.Object aObject)Compare an instance ofEPPHostCheckResultwith this instance.java.lang.StringgetHostReason()Gets host reason.java.lang.StringgetLanguage()Sets domain reason to check.java.lang.StringgetName()Gets the domain name associated with the result.java.lang.StringgetNamespace()Returns the XML namespace associated with theEPPCodecComponent.booleanisAvailable()Gets if the domain associated withEPPHostCheckResultis availability (can it be provisioned or not) at the moment the <check> command was completed.booleanisKnown()Deprecated.As of EPP 1.0, replaced withisAvailable().voidsetHostReason(java.lang.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.voidsetIsKnown(boolean aIsKnown)Deprecated.As of EPP 1.0, replaced withsetIsAvailable(boolean).voidsetLanguage(java.lang.String aLang)Sets language attribute.voidsetName(java.lang.String aName)Sets the domain name associated with the result.java.lang.StringtoString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
-
-
Constructor Detail
-
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
public EPPHostCheckResult(java.lang.String aName, boolean isAvailable)Constructor forEPPHostCheckResultthat includes the domain name and the is known flag.- Parameters:
aName- Domain name associated with resultisAvailable- Is the domain name available?
-
-
Method Detail
-
getName
public java.lang.String getName()
Gets the domain name associated with the result.- Returns:
- Domain name associated with the result if defined;
nullotherwise.
-
setName
public void setName(java.lang.String aName)
Sets the domain name associated with the result.- Parameters:
aName- Domain Name associated with the result.
-
isKnown
public boolean isKnown()
Deprecated.As of EPP 1.0, replaced withisAvailable().Gets if the domain associated withEPPHostCheckResultis known.- Returns:
- Is the domain known?
-
setIsKnown
public void setIsKnown(boolean aIsKnown)
Deprecated.As of EPP 1.0, replaced withsetIsAvailable(boolean).Sets if the domain associated withEPPHostCheckResultis known.- Parameters:
aIsKnown- Is the domain known?
-
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 inavailability 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
public void setHostReason(java.lang.String aReason)
Sets host reason.- Parameters:
aReason- Host Reason.
-
getHostReason
public java.lang.String getHostReason()
Gets host reason.- Returns:
- String of host reason.
-
setLanguage
public void setLanguage(java.lang.String aLang)
Sets language attribute.- Parameters:
aLang- Sets value of language attribute.
-
getLanguage
public java.lang.String getLanguage()
Sets domain reason to check.- Returns:
- String of language attribute.
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode 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
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode 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
public boolean equals(java.lang.Object aObject)
Compare an instance ofEPPHostCheckResultwith this instance.- Overrides:
equalsin classjava.lang.Object- Parameters:
aObject- Object to compare with.- Returns:
- DOCUMENT ME!
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPHostCheckResult.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classjava.lang.Object- Returns:
- clone of
EPPHostCheckResult - Throws:
java.lang.CloneNotSupportedException- standard Object.clone exception
-
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.
-
getNamespace
public java.lang.String getNamespace()
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-
-