Class EPPRelatedDomainExtInfo
- java.lang.Object
-
- com.verisign.epp.codec.relateddomainext.EPPRelatedDomainExtInfo
-
- All Implemented Interfaces:
EPPCodecComponent,java.io.Serializable,java.lang.Cloneable
public class EPPRelatedDomainExtInfo extends java.lang.Object implements EPPCodecComponent
EPPCodecComponent that encodes and decodes a <relDom:info> tagTitle: 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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringTYPE_DOMAINConstant for the type attribute that defines the use of the Domain Info Form.static java.lang.StringTYPE_RELATEDConstant for the type attribute that defines the use of the Related Info Form.
-
Constructor Summary
Constructors Constructor Description EPPRelatedDomainExtInfo()Default constructor, where thetypeis set toTYPE_DOMAIN.EPPRelatedDomainExtInfo(java.lang.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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()CloneEPPRelatedDomainExtInfo.voiddecode(org.w3c.dom.Element aElement)Decode the EPPRelatedDomainExtInfo attributes from the aElement DOM Element tree.org.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)Encode a DOM Element tree from the attributes of the EPPRelatedDomainExtInfo instance.booleanequals(java.lang.Object aObject)implements a deepEPPRelatedDomainExtInfocompare.java.lang.StringgetNamespace()Returns the XML namespace associated with theEPPCodecComponent.java.lang.StringgetType()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.voidsetType(java.lang.String aType)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.java.lang.StringtoString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
-
-
Field Detail
-
TYPE_DOMAIN
public static java.lang.String 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
public static java.lang.String 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 Detail
-
EPPRelatedDomainExtInfo
public EPPRelatedDomainExtInfo()
Default constructor, where thetypeis set toTYPE_DOMAIN.
-
EPPRelatedDomainExtInfo
public EPPRelatedDomainExtInfo(java.lang.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.- 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 Detail
-
getType
public java.lang.String 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
public void setType(java.lang.String aType)
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
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPRelatedDomainExtInfo.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classjava.lang.Object- Returns:
- clone of
EPPRelatedDomainExtInfo - Throws:
java.lang.CloneNotSupportedException- standard Object.clone exception
-
decode
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode 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
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode 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
public boolean equals(java.lang.Object aObject)
implements a deepEPPRelatedDomainExtInfocompare.- Overrides:
equalsin classjava.lang.Object- Parameters:
aObject-EPPRelatedDomainExtInfoinstance to compare with- Returns:
- DOCUMENT ME!
-
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.
-
-