Interface MailserverService

All Known Subinterfaces:
MozillaAutoconfMailserverService, SrvRecordMailserverService
All Known Implementing Classes:
AbstractMailserverService, SrvRecordMailserverServiceImpl

public interface MailserverService
  • 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 null if unknown
    • getHost

      String getHost()
      Host URL of the mailserver service.
      Returns:
      Host URL. May be null if this configuration should not be used / the protocol is not supported!
    • getPort

      Integer getPort()
      Port of the mailserver service.
      Returns:
      Port. May be null if 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 null if not specified
    • getConfigurationMethod

      ConfigurationMethod getConfigurationMethod()
      Returns the configuration method over which the mailserver configuration has been discovered.
      Returns:
      Mailserver configuration.