Class Domain


  • public class Domain
    extends Object
    It represents an absolute domain name.
    • Constructor Summary

      Constructors 
      Constructor Description
      Domain​(String value)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(Object obj)  
      int hashCode()  
      String smtpText()
      Returns the raw domain text, as it was supplied in the SMTP transaction.
      org.xbill.DNS.Name toName()
      converts this value to a dnsjava absolute domain name, assuming that the name represented by this object is absolute.
      String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Domain

        public Domain​(String value)
    • Method Detail

      • smtpText

        public String smtpText()
        Returns the raw domain text, as it was supplied in the SMTP transaction.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public String toString()
        Overrides:
        toString in class Object
      • toName

        public org.xbill.DNS.Name toName()
                                  throws RuntimeException
        converts this value to a dnsjava absolute domain name, assuming that the name represented by this object is absolute. Domains must be absolute in SMTP, except perhaps in a submission server.
        Throws:
        RuntimeException - if the name in this object is syntactically invalid as a domain name