Package com.verisign.epp.codec.whois
Class EPPWhoisInfData
- java.lang.Object
-
- com.verisign.epp.codec.whois.EPPWhoisInfData
-
- All Implemented Interfaces:
EPPCodecComponent,java.io.Serializable,java.lang.Cloneable
public class EPPWhoisInfData extends java.lang.Object implements EPPCodecComponent
Extension to the domain info response to return additional information that is found in whois. This will only be returned if theEPPWhoisInfextension is included in the domain info command with the flag value oftrue.- See Also:
EPPWhoisInf, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringELM_NAMEConstant for the whois info extension tag
-
Constructor Summary
Constructors Constructor Description EPPWhoisInfData()Create anEPPWhoisInfDatainstanceEPPWhoisInfData(java.lang.String aRegistrar)Create aEPPWhoisInfDatainstance with all of the required attributes.EPPWhoisInfData(java.lang.String aRegistrar, java.lang.String aWhoisServer, java.lang.String aURL)Create aEPPWhoisInfDatainstance with the most common attributesEPPWhoisInfData(java.lang.String aRegistrar, java.lang.String aWhoisServer, java.lang.String aURL, java.lang.String aIrisServer)Create aEPPWhoisInfDatainstance with all of the attributes.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()CloneEPPWhoisInfData.voiddecode(org.w3c.dom.Element aElement)Decode the EPPIdnLangExtCrete componentorg.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)Sets all this instance's data in the given XML documentbooleanequals(java.lang.Object aObject)implements a deepEPPWhoisInfDatacompare.java.lang.StringgetIrisServer()Returns the optional registrar IRIS server namejava.lang.StringgetNamespace()Returns the XML namespace associated with theEPPCodecComponent.java.lang.StringgetRegistrar()Returns the registrar namejava.lang.StringgetURL()Returns the registrar referral URLjava.lang.StringgetWhoisServer()Returns the registrar whois server namevoidsetFlag(java.lang.String aRegistrar)Sets the registrar namevoidsetIrisServer(java.lang.String aIrisServer)Sets the optional registrar IRIS server namevoidsetURL(java.lang.String aURL)Sets the registrar referral URLvoidsetWhoisServer(java.lang.String aWhoisServer)Sets the registrar whois server name
-
-
-
Field Detail
-
ELM_NAME
public static final java.lang.String ELM_NAME
Constant for the whois info extension tag- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPWhoisInfData
public EPPWhoisInfData()
Create anEPPWhoisInfDatainstance
-
EPPWhoisInfData
public EPPWhoisInfData(java.lang.String aRegistrar)
Create aEPPWhoisInfDatainstance with all of the required attributes.- Parameters:
aRegistrar- Sponsoring Registrar name
-
EPPWhoisInfData
public EPPWhoisInfData(java.lang.String aRegistrar, java.lang.String aWhoisServer, java.lang.String aURL)Create aEPPWhoisInfDatainstance with the most common attributes- Parameters:
aRegistrar- Sponsoring Registrar nameaWhoisServer- Sponsoring Registrar whois server nameaURL- Sponsoring Registrar referrel URL
-
EPPWhoisInfData
public EPPWhoisInfData(java.lang.String aRegistrar, java.lang.String aWhoisServer, java.lang.String aURL, java.lang.String aIrisServer)Create aEPPWhoisInfDatainstance with all of the attributes.- Parameters:
aRegistrar- Sponsoring Registrar nameaWhoisServer- Sponsoring Registrar whois server nameaURL- Sponsoring Registrar referrel URLaIrisServer- Optional Sponsoring Registrar IRIS server
-
-
Method Detail
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPWhoisInfData.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classjava.lang.Object- Returns:
- clone of
EPPWhoisInfData - Throws:
java.lang.CloneNotSupportedException- standard Object.clone exception
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionSets all this instance's data in the given XML document- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- a DOM Document to attach data to.- Returns:
- The root element of this component.
- Throws:
EPPEncodeException- Thrown if any errors prevent encoding.
-
decode
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode the EPPIdnLangExtCrete component- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Element to decode from- Throws:
EPPDecodeException- On decoding error
-
equals
public boolean equals(java.lang.Object aObject)
implements a deepEPPWhoisInfDatacompare.- Overrides:
equalsin classjava.lang.Object- Parameters:
aObject-EPPWhoisInfDatainstance to compare with- Returns:
- true if equal false otherwise
-
getRegistrar
public java.lang.String getRegistrar()
Returns the registrar name- Returns:
- the registrar name if set;
nullotherwise
-
setFlag
public void setFlag(java.lang.String aRegistrar)
Sets the registrar name- Parameters:
aRegistrar- Registrar full name
-
getWhoisServer
public java.lang.String getWhoisServer()
Returns the registrar whois server name- Returns:
- the registrar whois server name if set;
nullotherwise
-
setWhoisServer
public void setWhoisServer(java.lang.String aWhoisServer)
Sets the registrar whois server name- Parameters:
aWhoisServer- Registrar whois server name
-
getURL
public java.lang.String getURL()
Returns the registrar referral URL- Returns:
- the registrar referral URL if set;
nullotherwise
-
setURL
public void setURL(java.lang.String aURL)
Sets the registrar referral URL- Parameters:
aURL- Registrar referral URL
-
getIrisServer
public java.lang.String getIrisServer()
Returns the optional registrar IRIS server name- Returns:
- the registrar IRIS server name if set;
nullotherwise
-
setIrisServer
public void setIrisServer(java.lang.String aIrisServer)
Sets the optional registrar IRIS server name- Parameters:
aIrisServer- Registrar IRIS server name
-
getNamespace
public java.lang.String getNamespace()
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-
-