Class AddressLiteral

  • All Implemented Interfaces:
    RemotePart

    public class AddressLiteral
    extends Object
    implements RemotePart
    AddressLiteral is a remote part which is specified in IP address format, for example [192.0.2.0] in the john@[192.0.2.0] address.
    • Constructor Summary

      Constructors 
      Constructor Description
      AddressLiteral​(String smtpText, java.net.InetAddress inetAddress)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(Object obj)  
      int hashCode()  
      java.net.InetAddress inetAddress()  
      String smtpText()
      Returns the raw remote part text, as it was supplied in the SMTP transaction.
      String toString()
      returns the address literal, including brackets, e.g. [192.0.2.0]
      • Methods inherited from class java.lang.Object

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

      • AddressLiteral

        public AddressLiteral​(String smtpText,
                              java.net.InetAddress inetAddress)
    • Method Detail

      • inetAddress

        public java.net.InetAddress inetAddress()
      • 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()
        returns the address literal, including brackets, e.g. [192.0.2.0]
        Overrides:
        toString in class Object