Class DomainPart

  • All Implemented Interfaces:
    RemotePart

    public class DomainPart
    extends Object
    implements RemotePart
    DomainPart is a remote part which is specified as a DNS domain, for example example.com in the john@example.com address.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      Domain domain  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(Object obj)  
      int hashCode()  
      String smtpText()
      Returns the raw remote part text, as it was supplied in the SMTP transaction.
      String toString()  
      • Methods inherited from class java.lang.Object

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

      • domain

        public final Domain domain
    • Constructor Detail

      • DomainPart

        public DomainPart​(Domain domain)
      • DomainPart

        public DomainPart​(String domain)
    • Method Detail

      • smtpText

        public String smtpText()
        Description copied from interface: RemotePart
        Returns the raw remote part text, as it was supplied in the SMTP transaction.
        Specified by:
        smtpText in interface RemotePart
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface RemotePart
        Overrides:
        hashCode in class Object
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface RemotePart
        Overrides:
        equals in class Object
      • toString

        public String toString()
        Overrides:
        toString in class Object