Class EPPRelatedDomainExtInfo
java.lang.Object
com.verisign.epp.codec.relateddomainext.EPPRelatedDomainExtInfo
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
EPPCodecComponent that encodes and decodes a <relDom:info> tag
Title: EPP 1.0 Related Domain - info tag
Description: The EPPRelatedDomainExtInfo object indicates to the server to include the related domain information in the response. As XML, it is represented by a <relDom:info> element.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor, where thetypeis set toTYPE_DOMAIN.EPPRelatedDomainExtInfo(String aType) Constructor that takes the desired type of the extension using either the Domain Info Form, represented by theTYPE_DOMAINconstant, or the Related Info Form, represented by theTYPE_RELATEDconstant. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPRelatedDomainExtInfo.voidDecode the EPPRelatedDomainExtInfo attributes from the aElement DOM Element tree.Encode a DOM Element tree from the attributes of the EPPRelatedDomainExtInfo instance.booleanimplements a deepEPPRelatedDomainExtInfocompare.Returns the XML namespace associated with theEPPCodecComponent.getType()Gets the form type of the extension, which must be either theTYPE_DOMAINconstant for the Domain Info Form, and theTYPE_RELATEDconstant for the Related Info Form.voidSets the form type of the extension, which must be either theTYPE_DOMAINconstant for the Domain Info Form, and theTYPE_RELATEDconstant for the Related Info Form.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
TYPE_DOMAIN
Constant for the type attribute that defines the use of the Domain Info Form. With this form, a successful response will include the domain info of the domain name specified in the domain info command along with the related domain information in the extension. -
TYPE_RELATED
Constant for the type attribute that defines the use of the Related Info Form. With this form, a successful response will include just the related domain information associated with the domain name specified in the domain info command. The domain name in the domain info command does not have to exist and the response is a standard EPP response with the related domain extension.
-
-
Constructor Details
-
EPPRelatedDomainExtInfo
public EPPRelatedDomainExtInfo()Default constructor, where thetypeis set toTYPE_DOMAIN. -
EPPRelatedDomainExtInfo
Constructor that takes the desired type of the extension using either the Domain Info Form, represented by theTYPE_DOMAINconstant, or the Related Info Form, represented by theTYPE_RELATEDconstant.- Parameters:
aType- Type of form to use which must be either theTYPE_DOMAINconstant for the Domain Info Form or theTYPE_RELATEDconstant for the Related Info Form.
-
-
Method Details
-
getType
Gets the form type of the extension, which must be either theTYPE_DOMAINconstant for the Domain Info Form, and theTYPE_RELATEDconstant for the Related Info Form.- Returns:
- Either
TYPE_DOMAINorTYPE_RELATED.
-
setType
Sets the form type of the extension, which must be either theTYPE_DOMAINconstant for the Domain Info Form, and theTYPE_RELATEDconstant for the Related Info Form.- Parameters:
aType- EitherTYPE_DOMAINorTYPE_RELATED.
-
clone
CloneEPPRelatedDomainExtInfo.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPRelatedDomainExtInfo - Throws:
CloneNotSupportedException- standard Object.clone exception
-
decode
Decode the EPPRelatedDomainExtInfo attributes from the aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- - Root DOM Element to decode EPPRelatedDomainExtInfo from.- Throws:
EPPDecodeException- Unable to decode aElement
-
encode
Encode a DOM Element tree from the attributes of the EPPRelatedDomainExtInfo instance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- - DOM Document that is being built. Used as an Element factory.- Returns:
- Element - Root DOM Element representing the EPPRelatedDomainExtInfo instance.
- Throws:
EPPEncodeException- - Unable to encode EPPRelatedDomainExtInfo instance.
-
equals
implements a deepEPPRelatedDomainExtInfocompare. -
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.
-