Class Path.AddressList

  • All Implemented Interfaces:
    Path.ParserResult
    Enclosing class:
    Path

    public static final class Path.AddressList
    extends Object
    implements Path.ParserResult
    Representation for an address-list or a mailbox-list.
    Author:
    mirabilos (t.glaser@tarent.de)
    • Method Detail

      • toString

        public String toString()
        Returns the address-list or mailbox-list as (non-wrapped) string.
        Specified by:
        toString in interface Path.ParserResult
        Overrides:
        toString in class Object
        Returns:
        String address/mailbox *( ", " address/mailbox )
      • invalidsToString

        public String invalidsToString()
        Returns all invalid constituents as ", "-separated string, for error message construction.
        Returns:
        null if all constituents are valid, a String otherwise
      • flattenAddresses

        public List<String> flattenAddresses()
        Flattens the constituents into a list of their formatted representations.
        Returns:
        list of formatted strings, each an address (or mailbox)
        See Also:
        Path.Address.toString()
      • flattenAddrSpecs

        public List<String> flattenAddrSpecs()
        Flattens the constituents into their individual addr-spec members, for use by e.g. SMTP sending (Forward-Path construction).
        Returns:
        List of addr-spec Strings