Package com.verisign.epp.codec.emailFwd
Class EPPEmailFwdCheckResult
java.lang.Object
com.verisign.epp.codec.emailFwd.EPPEmailFwdCheckResult
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
EPPEmailFwdCheckResult represents the result of an individual
emailFwd name ping. The attributes of EPPEmailFwdCheckResult
include the emailFwd name and a boolean value indicating if the emailFwd name
is already available. emailFwd reason must be set before
invoking encode if the available flag is set to
false.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor forEPPEmailFwdCheckResult.EPPEmailFwdCheckResult(String aName, boolean aIsAvailable) Constructor forEPPEmailFwdCheckResultthat includes the emailFwd name and the is available flag. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPEmailFwdCheckResult.voidDecode theEPPEmailFwdCheckResultattributes from the aElement DOM Element tree.Encode a DOM Element tree from the attributes of theEPPEmailFwdCheckResultinstance.booleanCompare an instance ofEPPEmailFwdPingRespwith this instance.Gets emailFwd reason.Sets emailFwd reason to check.getName()Gets the emailFwd name associated with the result.Returns the XML namespace associated with theEPPCodecComponent.booleanGets if the emailFwd associated withEPPEmailFwdCheckResultis available.voidsetEmailFwdReason(String aReason) Sets emailFwd reason.voidsetIsAvailable(boolean aIsAvailable) Sets if the emailFwd associated withEPPEmailFwdCheckResultis available.voidsetLanguage(String aLang) Sets language attribute.voidSets the emailFwd name associated with the result.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Constructor Details
-
EPPEmailFwdCheckResult
public EPPEmailFwdCheckResult()Default constructor forEPPEmailFwdCheckResult. 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
-
EPPEmailFwdCheckResult
Constructor forEPPEmailFwdCheckResultthat includes the emailFwd name and the is available flag.- Parameters:
aName- EmailFwd name associated with resultaIsAvailable- Is the emailFwd name available?
-
-
Method Details
-
clone
CloneEPPEmailFwdCheckResult.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPEmailFwdCheckResult - Throws:
CloneNotSupportedException- standard Object.clone exception
-
decode
Decode theEPPEmailFwdCheckResultattributes from the aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Root DOM Element to decodeEPPEmailFwdCheckResultfrom.- Throws:
EPPDecodeException- Unable to decode aElement.
-
encode
Encode a DOM Element tree from the attributes of theEPPEmailFwdCheckResultinstance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the
EPPEmailFwdCheckResultinstance. - Throws:
EPPEncodeException- Unable to encodeEPPEmailFwdCheckResultinstance.
-
equals
Compare an instance ofEPPEmailFwdPingRespwith this instance. -
getEmailFwdReason
Gets emailFwd reason.- Returns:
- String of emailFwd reason if defined;
nullotherwise.
-
getLanguage
Sets emailFwd reason to check.- Returns:
- String of emailFwd reason language if defined;
nuillotherwise.
-
getName
Gets the emailFwd name associated with the result.- Returns:
- EmailFwd name associated with the result if defined;
nullotherwise.
-
isAvailable
public boolean isAvailable()Gets if the emailFwd associated withEPPEmailFwdCheckResultis available.- Returns:
- Is the emailFwd available?
-
setEmailFwdReason
Sets emailFwd reason.- Parameters:
aReason- EmailFwd Reason.
-
setIsAvailable
public void setIsAvailable(boolean aIsAvailable) Sets if the emailFwd associated withEPPEmailFwdCheckResultis available.- Parameters:
aIsAvailable- Is the emailFwd available?
-
setLanguage
Sets language attribute.- Parameters:
aLang- Sets emailFwd reason language attribute.
-
setName
Sets the emailFwd name associated with the result.- Parameters:
aName- EmailFwd Name associated with the result.
-
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.
-