Class EPPWhoisInfData

java.lang.Object
com.verisign.epp.codec.whois.EPPWhoisInfData
All Implemented Interfaces:
EPPCodecComponent, Serializable, Cloneable

public class EPPWhoisInfData extends Object implements EPPCodecComponent
Extension to the domain info response to return additional information that is found in whois. This will only be returned if the EPPWhoisInf extension is included in the domain info command with the flag value of true.
See Also:
  • Field Details

  • Constructor Details

    • EPPWhoisInfData

      public EPPWhoisInfData()
      Create an EPPWhoisInfData instance
    • EPPWhoisInfData

      public EPPWhoisInfData(String aRegistrar)
      Create a EPPWhoisInfData instance with all of the required attributes.
      Parameters:
      aRegistrar - Sponsoring Registrar name
    • EPPWhoisInfData

      public EPPWhoisInfData(String aRegistrar, String aWhoisServer, String aURL)
      Create a EPPWhoisInfData instance with the most common attributes
      Parameters:
      aRegistrar - Sponsoring Registrar name
      aWhoisServer - Sponsoring Registrar whois server name
      aURL - Sponsoring Registrar referrel URL
    • EPPWhoisInfData

      public EPPWhoisInfData(String aRegistrar, String aWhoisServer, String aURL, String aIrisServer)
      Create a EPPWhoisInfData instance with all of the attributes.
      Parameters:
      aRegistrar - Sponsoring Registrar name
      aWhoisServer - Sponsoring Registrar whois server name
      aURL - Sponsoring Registrar referrel URL
      aIrisServer - Optional Sponsoring Registrar IRIS server
  • Method Details

    • clone

      public Object clone() throws CloneNotSupportedException
      Clone EPPWhoisInfData.
      Specified by:
      clone in interface EPPCodecComponent
      Overrides:
      clone in class Object
      Returns:
      clone of EPPWhoisInfData
      Throws:
      CloneNotSupportedException - standard Object.clone exception
    • encode

      public Element encode(Document aDocument) throws EPPEncodeException
      Sets all this instance's data in the given XML document
      Specified by:
      encode in interface EPPCodecComponent
      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(Element aElement) throws EPPDecodeException
      Decode the EPPIdnLangExtCrete component
      Specified by:
      decode in interface EPPCodecComponent
      Parameters:
      aElement - Element to decode from
      Throws:
      EPPDecodeException - On decoding error
    • equals

      public boolean equals(Object aObject)
      implements a deep EPPWhoisInfData compare.
      Overrides:
      equals in class Object
      Parameters:
      aObject - EPPWhoisInfData instance to compare with
      Returns:
      true if equal false otherwise
    • getRegistrar

      public String getRegistrar()
      Returns the registrar name
      Returns:
      the registrar name if set;null otherwise
    • setFlag

      public void setFlag(String aRegistrar)
      Sets the registrar name
      Parameters:
      aRegistrar - Registrar full name
    • getWhoisServer

      public String getWhoisServer()
      Returns the registrar whois server name
      Returns:
      the registrar whois server name if set;null otherwise
    • setWhoisServer

      public void setWhoisServer(String aWhoisServer)
      Sets the registrar whois server name
      Parameters:
      aWhoisServer - Registrar whois server name
    • getURL

      public String getURL()
      Returns the registrar referral URL
      Returns:
      the registrar referral URL if set;null otherwise
    • setURL

      public void setURL(String aURL)
      Sets the registrar referral URL
      Parameters:
      aURL - Registrar referral URL
    • getIrisServer

      public String getIrisServer()
      Returns the optional registrar IRIS server name
      Returns:
      the registrar IRIS server name if set;null otherwise
    • setIrisServer

      public void setIrisServer(String aIrisServer)
      Sets the optional registrar IRIS server name
      Parameters:
      aIrisServer - Registrar IRIS server name
    • getNamespace

      public String getNamespace()
      Returns the XML namespace associated with the EPPCodecComponent.
      Specified by:
      getNamespace in interface EPPCodecComponent
      Returns:
      XML namespace for the EPPCodecComponent.