Class MailServerPage

  • public class MailServerPage
    extends Object
    • Constructor Detail

      • MailServerPage

        public MailServerPage​(net.sourceforge.jwebunit.junit.WebTester webTester)
    • Method Detail

      • addSmtpServer

        public void addSmtpServer​(String serverName,
                                  String from,
                                  String subjectPrefix,
                                  String hostname,
                                  int port)
        Adds a SMTP server to the Confluence configuration
        serverName - description of the server for Confluence
        from - emails sent via this server will have this value in the from header
        subjectPrefix - this prefix will be appended to all mail sent via this server
        hostname - the host name of the server to connect to
        port - the port of the server to connect to
      • getNumberOfSmtpMailServers

        public int getNumberOfSmtpMailServers()
      • getMailServerPrefix

        public String getMailServerPrefix​(int index)
        index - zero based index of which mail server to get
        string of the subject prefix.
        IndexOutOfBoundsException - when the index not less than the number of mail servers.