Package org.evolvis.tartools.rfc822
Class Path.AddressList
java.lang.Object
org.evolvis.tartools.rfc822.Path.AddressList
- All Implemented Interfaces:
Path.ParserResult
- Enclosing class:
- Path
Representation for an
address-list or a mailbox-list.- Author:
- mirabilos (t.glaser@tarent.de)
-
Method Summary
Modifier and TypeMethodDescriptionFlattens the constituents into a list of their formatted representations.Flattens the constituents into their individualaddr-specmembers, for use by e.g.Returns all invalid constituents as", "-separated string, for error message construction.toString()Returns theaddress-listormailbox-listas (non-wrapped) string.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.evolvis.tartools.rfc822.Path.ParserResult
isValid
-
Method Details
-
toString
Returns theaddress-listormailbox-listas (non-wrapped) string.- Specified by:
toStringin interfacePath.ParserResult- Overrides:
toStringin classObject- Returns:
- String address/mailbox *(
", "address/mailbox )
-
invalidsToString
Returns all invalid constituents as", "-separated string, for error message construction.- Returns:
- null if all constituents are valid, a String otherwise
-
flattenAddresses
Flattens the constituents into a list of their formatted representations.- Returns:
- list of formatted strings, each an address (or mailbox)
- See Also:
-
flattenAddrSpecs
Flattens the constituents into their individualaddr-specmembers, for use by e.g. SMTP sending (Forward-Path construction).
-