Package de.adrianlange.mcd.model
Interface MailserverService
- All Known Subinterfaces:
MozillaAutoconfMailserverService,SrvRecordMailserverService
- All Known Implementing Classes:
AbstractMailserverService,SrvRecordMailserverServiceImpl
public interface MailserverService
-
Method Summary
Modifier and TypeMethodDescriptionReturns the configuration method over which the mailserver configuration has been discovered.getHost()Host URL of the mailserver service.getPort()Port of the mailserver service.Priority of the mailserver service.Returns the protocol of the mailserver service.Returns the socket type od the mailserver configuration.
-
Method Details
-
getProtocol
Protocol getProtocol()Returns the protocol of the mailserver service. This can be SMTP for submission or IMAP or POP3 for reception.- Returns:
- protocol of the mailserver service
-
getSocketType
SocketType getSocketType()Returns the socket type od the mailserver configuration. This can eiter be PLAIN, STARTTLS or SSL.- Returns:
- Socket type of the service or
nullif unknown
-
getHost
String getHost()Host URL of the mailserver service.- Returns:
- Host URL. May be
nullif this configuration should not be used / the protocol is not supported!
-
getPort
Integer getPort()Port of the mailserver service.- Returns:
- Port. May be
nullif this configuration should not be used / the protocol is not supported!
-
getPriority
Integer getPriority()Priority of the mailserver service. A service with a smaller priority should be preferred over a service with a larger priority. This also applies across protocols, for example, it can be made clear that the connection via IMAP should be preferred to one via POP3.- Returns:
- Priority of the mailserver service or
nullif not specified
-
getConfigurationMethod
ConfigurationMethod getConfigurationMethod()Returns the configuration method over which the mailserver configuration has been discovered.- Returns:
- Mailserver configuration.
-