public class MailUtils
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
MailUtils.MXRecord
Wrapper around a MX DNS entry
|
Constructor and Description |
---|
MailUtils() |
Modifier and Type | Method and Description |
---|---|
static java.util.List<MailUtils.MXRecord> |
getMXServers(java.lang.String domain)
Get the mail servers for the given domain name
|
static java.util.List<MailUtils.MXRecord> |
removeDuplicates(java.util.List<MailUtils.MXRecord> original)
Remove servers that show up more than once in a MX list of a domain.
|
public static java.util.List<MailUtils.MXRecord> getMXServers(java.lang.String domain)
domain
- public static java.util.List<MailUtils.MXRecord> removeDuplicates(java.util.List<MailUtils.MXRecord> original)
original
- getMXServers(String)