Class EPPWhoisInf

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

public class EPPWhoisInf extends Object implements EPPCodecComponent
Extension to the domain info command to specify whether or not the whois info response data defined in EPPWhoisInfData is desired. There is a single flag attribute that specifies the preference. A flag attribute value of false has the same result of not including the EPPWhoisInfo extension.
See Also:
  • Field Details

  • Constructor Details

    • EPPWhoisInf

      public EPPWhoisInf()
      Create an EPPWhoisInf instance
    • EPPWhoisInf

      public EPPWhoisInf(boolean aFlag)
      Create a EPPWhoisInf intance with the flag value
      Parameters:
      aFlag - true to get the EPPWhoisInfData extension in the response;false otherwise
    • EPPWhoisInf

      public EPPWhoisInf(Boolean aFlag)
      Create a EPPWhoisInf intance with the flag value
      Parameters:
      aFlag - true to get the EPPWhoisInfData extension in the response;false otherwise
  • Method Details

    • clone

      public Object clone() throws CloneNotSupportedException
      Clone EPPWhoisInf.
      Specified by:
      clone in interface EPPCodecComponent
      Overrides:
      clone in class Object
      Returns:
      clone of EPPWhoisInf
      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 EPPWhoisInf compare.
      Overrides:
      equals in class Object
      Parameters:
      aObject - EPPWhoisInf instance to compare with
      Returns:
      true if equal false otherwise
    • getFlag

      public Boolean getFlag()
      Returns the flag value
      Returns:
      the flag value if set;null otherwise
    • setFlag

      public void setFlag(Boolean aFlag)
      Sets the flag Code
      Parameters:
      aFlag - The flag value
    • getNamespace

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