Class AbstractMailserverService

java.lang.Object
de.adrianlange.mcd.model.impl.AbstractMailserverService
All Implemented Interfaces:
MailserverService
Direct Known Subclasses:
SrvRecordMailserverServiceImpl

public abstract class AbstractMailserverService extends Object implements MailserverService
  • Constructor Details

  • Method Details

    • getProtocol

      public Protocol getProtocol()
      Description copied from interface: MailserverService
      Returns the protocol of the mailserver service. This can be SMTP for submission or IMAP or POP3 for reception.
      Specified by:
      getProtocol in interface MailserverService
      Returns:
      protocol of the mailserver service
    • setProtocol

      public void setProtocol(Protocol protocol)
    • getSocketType

      public SocketType getSocketType()
      Description copied from interface: MailserverService
      Returns the socket type od the mailserver configuration. This can eiter be PLAIN, STARTTLS or SSL.
      Specified by:
      getSocketType in interface MailserverService
      Returns:
      Socket type of the service or null if unknown
    • setSocketType

      public void setSocketType(SocketType socketType)
    • getHost

      public String getHost()
      Description copied from interface: MailserverService
      Host URL of the mailserver service.
      Specified by:
      getHost in interface MailserverService
      Returns:
      Host URL. May be null if this configuration should not be used / the protocol is not supported!
    • setHost

      public void setHost(String host)
    • getPort

      public Integer getPort()
      Description copied from interface: MailserverService
      Port of the mailserver service.
      Specified by:
      getPort in interface MailserverService
      Returns:
      Port. May be null if this configuration should not be used / the protocol is not supported!
    • setPort

      public void setPort(Integer port)
    • getPriority

      public Integer getPriority()
      Description copied from interface: MailserverService
      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.
      Specified by:
      getPriority in interface MailserverService
      Returns:
      Priority of the mailserver service or null if not specified
    • setPriority

      public void setPriority(Integer priority)
    • getConfigurationMethod

      public ConfigurationMethod getConfigurationMethod()
      Description copied from interface: MailserverService
      Returns the configuration method over which the mailserver configuration has been discovered.
      Specified by:
      getConfigurationMethod in interface MailserverService
      Returns:
      Mailserver configuration.
    • setConfigurationMethod

      public void setConfigurationMethod(ConfigurationMethod configurationMethod)
    • toString

      public String toString()
      Overrides:
      toString in class Object