Package de.adrianlange.mcd.strategy
Interface MailserverConfigurationDiscoveryStrategy
- All Known Implementing Classes:
SrvRecordMailserverConfigurationDiscoveryStrategy
public interface MailserverConfigurationDiscoveryStrategy
- Author:
- Adrian Lange
-
Method Summary
Modifier and TypeMethodDescriptiongetMailserverServices(EmailAddress emailAddress) Get a list of MailserverServices representing a specific mailserver protocol configuration for submission and reception of emails.getMailserverServices(EmailAddress.DomainPart domainPart) Get a list of MailserverServices representing a specific mailserver protocol configuration for submission and reception of emails.getMailserverServicesAsync(EmailAddress emailAddress) Get a list of MailserverServices representing a specific mailserver protocol configuration for submission and reception of emails.getMailserverServicesAsync(EmailAddress.DomainPart domainPart) Get a list of MailserverServices representing a specific mailserver protocol configuration for submission and reception of emails.
-
Method Details
-
getMailserverServices
Get a list of MailserverServices representing a specific mailserver protocol configuration for submission and reception of emails. If only the domain part is known or should be used for the lookup, please usegetMailserverServices(EmailAddress.DomainPart)instead.- Parameters:
emailAddress- Email address object to get mailserver configurations for.- Returns:
- A list of mailserver services. The list can contain duplicate configurations published using different methods, like SRV resource records or Mozilla Autoconf.
-
getMailserverServices
Get a list of MailserverServices representing a specific mailserver protocol configuration for submission and reception of emails. If the whole email address is known or should be used for the lookup, please usegetMailserverServices(EmailAddress)instead.- Parameters:
domainPart- Email address domain part to get mailserver configurations for.- Returns:
- A list of mailserver services. The list can contain duplicate configurations published using different methods, like SRV resource records or Mozilla Autoconf.
-
getMailserverServicesAsync
List<CompletableFuture<List<MailserverService>>> getMailserverServicesAsync(EmailAddress emailAddress) Get a list of MailserverServices representing a specific mailserver protocol configuration for submission and reception of emails. If only the domain part is known or should be used for the lookup, please usegetMailserverServices(EmailAddress.DomainPart)instead.- Parameters:
emailAddress- Email address object to get mailserver configurations for.- Returns:
- A list of mailserver services. The list can contain duplicate configurations published using different methods, like SRV resource records or Mozilla Autoconf.
-
getMailserverServicesAsync
List<CompletableFuture<List<MailserverService>>> getMailserverServicesAsync(EmailAddress.DomainPart domainPart) Get a list of MailserverServices representing a specific mailserver protocol configuration for submission and reception of emails. If the whole email address is known or should be used for the lookup, please usegetMailserverServices(EmailAddress)instead.- Parameters:
domainPart- Email address domain part to get mailserver configurations for.- Returns:
- A list of mailserver services. The list can contain duplicate configurations published using different methods, like SRV resource records or Mozilla Autoconf.
-