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 theEPPWhoisInf
extension 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.String
ELM_NAME
Constant for the whois info extension tag
-
Constructor Summary
Constructors Constructor Description EPPWhoisInfData()
Create anEPPWhoisInfData
instanceEPPWhoisInfData(java.lang.String aRegistrar)
Create aEPPWhoisInfData
instance with all of the required attributes.EPPWhoisInfData(java.lang.String aRegistrar, java.lang.String aWhoisServer, java.lang.String aURL)
Create aEPPWhoisInfData
instance with the most common attributesEPPWhoisInfData(java.lang.String aRegistrar, java.lang.String aWhoisServer, java.lang.String aURL, java.lang.String aIrisServer)
Create aEPPWhoisInfData
instance with all of the attributes.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
clone()
CloneEPPWhoisInfData
.void
decode(org.w3c.dom.Element aElement)
Decode the EPPIdnLangExtCrete componentorg.w3c.dom.Element
encode(org.w3c.dom.Document aDocument)
Sets all this instance's data in the given XML documentboolean
equals(java.lang.Object aObject)
implements a deepEPPWhoisInfData
compare.java.lang.String
getIrisServer()
Returns the optional registrar IRIS server namejava.lang.String
getNamespace()
Returns the XML namespace associated with theEPPCodecComponent
.java.lang.String
getRegistrar()
Returns the registrar namejava.lang.String
getURL()
Returns the registrar referral URLjava.lang.String
getWhoisServer()
Returns the registrar whois server namevoid
setFlag(java.lang.String aRegistrar)
Sets the registrar namevoid
setIrisServer(java.lang.String aIrisServer)
Sets the optional registrar IRIS server namevoid
setURL(java.lang.String aURL)
Sets the registrar referral URLvoid
setWhoisServer(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 anEPPWhoisInfData
instance
-
EPPWhoisInfData
public EPPWhoisInfData(java.lang.String aRegistrar)
Create aEPPWhoisInfData
instance 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 aEPPWhoisInfData
instance 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 aEPPWhoisInfData
instance 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.CloneNotSupportedException
CloneEPPWhoisInfData
.- Specified by:
clone
in interfaceEPPCodecComponent
- Overrides:
clone
in 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 EPPEncodeException
Sets all this instance's data in the given XML document- Specified by:
encode
in 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 EPPDecodeException
Decode the EPPIdnLangExtCrete component- Specified by:
decode
in interfaceEPPCodecComponent
- Parameters:
aElement
- Element to decode from- Throws:
EPPDecodeException
- On decoding error
-
equals
public boolean equals(java.lang.Object aObject)
implements a deepEPPWhoisInfData
compare.- Overrides:
equals
in classjava.lang.Object
- Parameters:
aObject
-EPPWhoisInfData
instance 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;
null
otherwise
-
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;
null
otherwise
-
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;
null
otherwise
-
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;
null
otherwise
-
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:
getNamespace
in interfaceEPPCodecComponent
- Returns:
- XML namespace for the
EPPCodecComponent
.
-
-