Class AbstractMailserverService

    • Method Detail

      • 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)
      • setConfigurationMethod

        public void setConfigurationMethod​(ConfigurationMethod configurationMethod)